Skip to content

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

fix: sync button in status bar not working

thecodrr8fdfbf5bd430
diff --git a/apps/web/src/components/status-bar/index.js b/apps/web/src/components/status-bar/index.js
index d6f7b67ce..82a8a225d 100644
--- a/apps/web/src/components/status-bar/index.js
+++ b/apps/web/src/components/status-bar/index.js
@@ -10,7 +10,7 @@ import { hashNavigate, navigate } from "../../navigation";
function StatusBar() {
const user = useUserStore((state) => state.user);
- const sync = useUserStore((state) => state.sync);
+ const sync = useAppStore((state) => state.sync);
const lastSynced = useAppStore((state) => state.lastSynced);
const isLoggedIn = useUserStore((state) => state.isLoggedIn);
const isSyncing = useAppStore((state) => state.isSyncing);
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index d7042918a..81e5e129b 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -127,6 +127,7 @@ class AppStore extends BaseStore {
return db
.sync(full)
.then(async () => {
+ showToast("Sync completed.");
await this.updateLastSynced();
return await this.refresh();
})