From 7584d3b4772250aae5dd768cb980cdce30b5dab0 Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Tue, 22 Jun 2021 12:06:45 +0530 Subject: [PATCH] fix: Boolean value --- src/libs/actions/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/User.js b/src/libs/actions/User.js index c43701d37c30..e3788fe46613 100644 --- a/src/libs/actions/User.js +++ b/src/libs/actions/User.js @@ -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}`, '');