A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
handle null object on get user
ammarahm-ed81fb238e96f1
diff --git a/apps/mobile/App.js b/apps/mobile/App.jsindex c53a079d6..34b69a991 100644--- a/apps/mobile/App.js+++ b/apps/mobile/App.js@@ -27,17 +27,16 @@ const App = () => {useEffect(() => {if (!netInfo.isConnected || !netInfo.isInternetReachable) {- db.user.get().then(user => {+ db.user?.get().then(user => {if (user) {ToastEvent.show('No internet connection','error');} else {-}});} else {- db.user.get().then(user => {+ db.user?.get().then(user => {if (user) {- ToastEvent.show('Internet connection restored');+ ToastEvent.show('Internet connection restored','success');} else {}