Skip to content

Commit

Permalink
Merge pull request #3717 from parasharrajat/preference
Browse files Browse the repository at this point in the history
[No QA] Set the user preferences correctly on Onyx
  • Loading branch information
thienlnam authored Jun 22, 2021
2 parents 75671ce + 7584d3b commit cf7018e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function getUserDetails() {
// Update the User onyx key
const loginList = _.where(response.loginList, {partnerName: 'expensify.com'});
const expensifyNewsStatus = lodashGet(response, 'account.subscribed', true);
Onyx.merge(ONYXKEYS.USER, {loginList, expensifyNewsStatus});
Onyx.merge(ONYXKEYS.USER, {loginList, expensifyNewsStatus: !!expensifyNewsStatus});

// Update the nvp_payPalMeAddress NVP
const payPalMeAddress = lodashGet(response, `nameValuePairs.${CONST.NVP.PAYPAL_ME_ADDRESS}`, '');
Expand Down

0 comments on commit cf7018e

Please sign in to comment.