Merge pull request #12603 from germanocaumo/v2.3.x-release

fix(poll): missed test for polls with > 5 default answers
This commit is contained in:
Anton Georgiev 2021-06-17 06:53:04 -04:00 committed by GitHub
commit e3ae906034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,7 @@ class PollDrawComponent extends Component {
const _tempArray = [];
const _result = reducedResult[i];
if (isDefaultPoll) {
if (isDefaultPoll && pollAnswerIds[_result.key.toLowerCase()]) {
_result.key = intl.formatMessage(pollAnswerIds[_result.key.toLowerCase()]);
}