Skip to content

Commit

Permalink
Merge pull request #3748 from Expensify/stites-fixDefault
Browse files Browse the repository at this point in the history
Change blocked from concierge prop default to empty object
  • Loading branch information
roryabraham authored Jun 24, 2021
2 parents a029762 + f2e965d commit 3ed8538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/actions/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function getUserDetails() {
Onyx.merge(ONYXKEYS.NVP_PAYPAL_ME_ADDRESS, payPalMeAddress);

// Update the blockedFromConcierge NVP
const blockedFromConcierge = lodashGet(response, `nameValuePairs.${CONST.NVP.BLOCKED_FROM_CONCIERGE}`, '');
const blockedFromConcierge = lodashGet(response, `nameValuePairs.${CONST.NVP.BLOCKED_FROM_CONCIERGE}`, {});
Onyx.merge(ONYXKEYS.NVP_BLOCKED_FROM_CONCIERGE, blockedFromConcierge);
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ class ReportActionCompose extends React.Component {
const isConciergeChat = this.props.report.participants
&& this.props.report.participants.includes(CONST.EMAIL.CONCIERGE);
let isBlockedFromConcierge = false;
if (isConciergeChat && this.props.blockedFromConcierge) {
if (isConciergeChat && !_.isEmpty(this.props.blockedFromConcierge)) {
isBlockedFromConcierge = User.isBlockedFromConcierge(this.props.blockedFromConcierge.expiresAt);
}

Expand Down

0 comments on commit 3ed8538

Please sign in to comment.