Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix walkthrough state not properly loaded from storage on init

ammarahm-ed7cf7dbaa65d2
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);
}