Skip to content

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

fix: show toast when there is a merge conflict

thecodrr82e4e2202d26
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index 255af15de..c729ed70e 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -134,12 +134,9 @@ class AppStore extends BaseStore {
return await this.refresh();
})
.catch(async (err) => {
+ showToast("error", err.message);
console.error(err);
if (err.code === "MERGE_CONFLICT") await this.refresh();
- else {
- showToast("error", err.message);
- console.error(err);
- }
})
.finally(() => {
this.set((state) => (state.isSyncing = false));