update user

This commit is contained in:
ammarahm-ed
2020-12-16 14:57:58 +05:00
parent 6565b0d39b
commit b23cd26a29
17 changed files with 154 additions and 108 deletions

View File

@@ -475,8 +475,7 @@ export const ActionSheetComponent = ({
ToastEvent.show(e.message, 'error', 'local', 5000);
}
} finally {
let user = await db.user.get();
dispatch({type: Actions.USER, user: user});
dispatch({type: Actions.LAST_SYNC,lastSync: await db.lastSynced()});
dispatch({type: Actions.ALL});
setRefreshing(false);
}