Skip to content

Commit

Permalink
Merge pull request #4403 from aman-atg/aman-atg-chronosTimezone
Browse files Browse the repository at this point in the history
don't show localTime for Chronos
  • Loading branch information
Beamanator authored Aug 5, 2021
2 parents 474a149 + 92c8634 commit 0b1b35c
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 0b1b35c

Please sign in to comment.