Skip to content

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

dont show json.parse error on app load

ammarahm-ed15215d6df8c2
diff --git a/apps/mobile/App.js b/apps/mobile/App.js
index 39fe46abf..79a455af2 100644
--- a/apps/mobile/App.js
+++ b/apps/mobile/App.js
@@ -121,9 +121,7 @@ const App = () => {
}
};
-
useEffect(() => {
-
eSubscribeEvent(eStartSyncer, startSyncer);
eSubscribeEvent(eResetApp, resetApp);
Orientation.addOrientationListener(_onOrientationChange);
@@ -166,7 +164,8 @@ const App = () => {
setTimeout(() => {
if (error) {
- ToastEvent.show(error.message);
+ console.log(error);
+ ToastEvent.show('Error initializing database.');
}
SplashScreen.hide();
}, 500);