web: update sync status on auto sync completion

This commit is contained in:
Abdullah Atta
2023-06-17 19:13:54 +05:00
parent 9bae058d16
commit 5c849c39b4

View File

@@ -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();
});