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
mobile: fix crash when user logged out
Ammar Ahmedd4f902f63da4
diff --git a/apps/mobile/app/screens/settings/user-section.jsx b/apps/mobile/app/screens/settings/user-section.jsxindex 0abe4fc89..e6ec82484 100644--- a/apps/mobile/app/screens/settings/user-section.jsx+++ b/apps/mobile/app/screens/settings/user-section.jsx@@ -130,8 +130,8 @@ const SettingsUserSection = ({ item }) => {const { isInternetReachable } = useNetInfo();const isOffline = !isInternetReachable;const userProfile = useUserStore((state) => state.profile);- const used = user.storageUsed || 0;- const total = user.totalStorage || 0;+ const used = user?.storageUsed || 0;+ const total = user?.totalStorage || 0;return (<>