From 1cb880bb30aa4e4b2b13a336c6a2b11742329de5 Mon Sep 17 00:00:00 2001 From: Ramon Souza Date: Tue, 25 May 2021 15:48:53 -0300 Subject: [PATCH] fix extract poll question crash --- .../chat/time-window-list/time-window-chat-item/container.jsx | 2 +- .../time-window-chat-item/message-chat-item/component.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/container.jsx b/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/container.jsx index 02e7e92898..b46339d2ef 100644 --- a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/container.jsx @@ -19,7 +19,7 @@ const extractPollQuestion = (pollText) => { }; const isDefaultPoll = (pollText) => { - const { pollText: newPollText } = extractPollQuestion(pollText); + const { newPollText } = extractPollQuestion(pollText); const pollValue = newPollText.replace(/|[ :|%\n\d+]/g, ''); switch (pollValue) { diff --git a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/message-chat-item/component.jsx b/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/message-chat-item/component.jsx index ca168c60aa..6ad15b22ac 100644 --- a/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/message-chat-item/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/chat/time-window-list/time-window-chat-item/message-chat-item/component.jsx @@ -183,7 +183,7 @@ class MessageChatItem extends PureComponent { let _text = text.replace('bbb-published-poll-
', ''); - const { pollQuestion, pollText: newPollText } = extractPollQuestion(_text); + const { pollQuestion, newPollText } = extractPollQuestion(_text); _text = newPollText; if (!isDefaultPoll) {