Skip to content

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

stop syncing when error occurs

ammarahm-ed9378f5166867
diff --git a/apps/mobile/src/services/Sync.js b/apps/mobile/src/services/Sync.js
index 71a575018..ad2992b9b 100644
--- a/apps/mobile/src/services/Sync.js
+++ b/apps/mobile/src/services/Sync.js
@@ -26,6 +26,10 @@ const run = async (context = 'global') => {
'Login',
);
} else {
+ updateEvent({
+ type: Actions.SYNCING,
+ syncing: false,
+ });
ToastEvent.show(e.message, 'error', context, 3000);
}
} finally {