Skip to content

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

fix: don't show sync status of lastSynced is null

thecodrrf1956268febb
diff --git a/apps/web/src/components/status-bar/index.js b/apps/web/src/components/status-bar/index.js
index 729b7e141..2072e684e 100644
--- a/apps/web/src/components/status-bar/index.js
+++ b/apps/web/src/components/status-bar/index.js
@@ -149,7 +149,7 @@ function SyncStatus() {
const lastSynced = useAppStore((state) => state.lastSynced);
const user = useUserStore((state) => state.user);
- if (!user.isEmailConfirmed) return null;
+ if (!user.isEmailConfirmed || !lastSynced) return null;
switch (syncStatus) {
case "synced":
return (