Skip to content

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

present walkthrough only if no notebooks

ammarahm-ed1805ac284906
diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.js
index 14949b136..4d98c4a5a 100644
--- a/apps/mobile/src/views/Folders/index.js
+++ b/apps/mobile/src/views/Folders/index.js
@@ -46,7 +46,6 @@ export const Folders = ({ navigation }) => {
useEffect(() => {
navigation.addListener('focus', onFocus);
- Walkthrough.present('notebooks');
return () => {
ranAfterInteractions = false;
navigation.removeListener('focus', onFocus);
@@ -55,6 +54,9 @@ export const Folders = ({ navigation }) => {
useEffect(() => {
if (navigation.isFocused()) {
+ if (notebooks.length === 0) {
+ Walkthrough.present('notebooks');
+ }
updateSearch();
}
}, [notebooks]);