Skip to content

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

mobile: notebook welcom dialog shows on login with notebooks

ammarahm-ed0c527efce7f3
diff --git a/apps/mobile/app/screens/notebooks/index.tsx b/apps/mobile/app/screens/notebooks/index.tsx
index d60048cf9..42f6e8cfd 100644
--- a/apps/mobile/app/screens/notebooks/index.tsx
+++ b/apps/mobile/app/screens/notebooks/index.tsx
@@ -67,8 +67,8 @@ export const Notebooks = ({
});
SearchService.prepareSearch = prepareSearch;
useNavigationStore.getState().setButtonAction(onPressFloatingButton);
-
- if (notebooks.length === 0) {
+ //@ts-ignore need to update typings in core to fix this
+ if (db.notebooks.all.length === 0) {
Walkthrough.present("notebooks");
} else {
Walkthrough.update("notebooks");