From b7923c42f65d090e3fc6a6cc0b97bcf27048d070 Mon Sep 17 00:00:00 2001 From: Pujan Date: Tue, 20 Jun 2023 23:24:44 +0530 Subject: [PATCH] corrected the participants condition for optionRow --- src/components/OptionRow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/OptionRow.js b/src/components/OptionRow.js index 1a8725e592b7..14b16949de70 100644 --- a/src/components/OptionRow.js +++ b/src/components/OptionRow.js @@ -135,7 +135,7 @@ class OptionRow extends Component { // We only create tooltips for the first 10 users or so since some reports have hundreds of users, causing performance to degrade. const displayNamesWithTooltips = ReportUtils.getDisplayNamesWithTooltips( - (this.props.option.participantsList || this.props.option.accountID ? [this.props.option] : []).slice(0, 10), + (this.props.option.participantsList || (this.props.option.accountID ? [this.props.option] : [])).slice(0, 10), isMultipleParticipant, ); let subscriptColor = themeColors.appBG;