diff --git a/apps/mobile/src/utils/hooks/useAppEvents.js b/apps/mobile/src/utils/hooks/useAppEvents.js index caa13c467..588f214cf 100644 --- a/apps/mobile/src/utils/hooks/useAppEvents.js +++ b/apps/mobile/src/utils/hooks/useAppEvents.js @@ -168,6 +168,7 @@ export const useAppEvents = () => { console.log('sync complete'); initialize(); setLastSynced(await db.lastSynced()); + setSyncing(false); if (getNote()) { await updateNoteInEditor(); } @@ -292,6 +293,7 @@ export const useAppEvents = () => { try { user = await db.user.getUser(); await PremiumService.setPremiumStatus(); + setLastSynced(await db.lastSynced()); if (!user) { return setLoginMessage(); }