fix walkthrough state not properly loaded from storage on init

This commit is contained in:
ammarahm-ed
2022-03-09 16:43:58 +05:00
parent e6ae6ce51c
commit 7cf7dbaa65

View File

@@ -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);
}