Skip to content

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

web: update sync status on auto sync completion

Abdullah Atta5c849c39b4ac
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index dceca24ff..89f2212f0 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -123,9 +123,7 @@ class AppStore extends BaseStore {
});
db.eventManager.subscribe(EVENTS.syncCompleted, () => {
- this.set((state) => {
- state.syncStatus = { key: "synced" };
- });
+ this.updateSyncStatus("synced", false);
count = 0;
this.refresh();
});