Skip to content

Commit

Permalink
don't show localTime for Chronos
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-atg committed Aug 3, 2021
1 parent e511b1f commit 92c8634
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,13 @@ class ReportActionCompose extends React.Component {
// eslint-disable-next-line no-unused-vars
const reportParticipants = lodashGet(this.props.report, 'participants', []);
const hasMultipleParticipants = reportParticipants.length > 1;
const hasChronosParticipant = _.contains(reportParticipants, CONST.EMAIL.CHRONOS);
const hasConciergeParticipant = _.contains(reportParticipants, CONST.EMAIL.CONCIERGE);
const reportRecipient = this.props.personalDetails[reportParticipants[0]];
const currentUserTimezone = lodashGet(this.props.myPersonalDetails, 'timezone', {});
const reportRecipientTimezone = lodashGet(reportRecipient, 'timezone', {});
const shouldShowReportRecipientLocalTime = !hasConciergeParticipant
&& !hasChronosParticipant
&& !hasMultipleParticipants
&& reportRecipient
&& reportRecipientTimezone
Expand Down

0 comments on commit 92c8634

Please sign in to comment.