From 7cf7dbaa65d2316b370d94f110f427451bf4aad3 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Wed, 9 Mar 2022 16:43:58 +0500 Subject: [PATCH] fix walkthrough state not properly loaded from storage on init --- apps/mobile/src/components/walkthroughs/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/src/components/walkthroughs/index.tsx b/apps/mobile/src/components/walkthroughs/index.tsx index cc460290c..670aa4c89 100644 --- a/apps/mobile/src/components/walkthroughs/index.tsx +++ b/apps/mobile/src/components/walkthroughs/index.tsx @@ -118,7 +118,7 @@ Walkthrough.update = async (id: 'notebooks' | 'trialstarted' | 'emailconfirmed' Walkthrough.init = async () => { let json = await MMKV.getItem('walkthroughState'); - if (walkthroughState) { + if (json) { walkthroughState = JSON.parse(json); console.log(walkthroughState); }