Skip to content

Commit

Permalink
fix undefined returned value
Browse files Browse the repository at this point in the history
  • Loading branch information
fedirjh committed Mar 12, 2023
1 parent 5be9a94 commit 772cf30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,12 @@ function canShowReportRecipientLocalTime(personalDetails, report) {
const reportRecipient = personalDetails[participantsWithoutExpensifyEmails[0]];
const reportRecipientTimezone = lodashGet(reportRecipient, 'timezone', CONST.DEFAULT_TIME_ZONE);
const isReportParticipantValidated = lodashGet(reportRecipient, 'validated', false);
return !hasMultipleParticipants
return Boolean(!hasMultipleParticipants
&& !isChatRoom(report)
&& reportRecipient
&& reportRecipientTimezone
&& reportRecipientTimezone.selected
&& isReportParticipantValidated;
&& isReportParticipantValidated);
}

/**
Expand Down

0 comments on commit 772cf30

Please sign in to comment.