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

@@ -156,8 +156,7 @@ const SimpleList = ({
if (refreshCallback) {
refreshCallback();
}
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});
}
}, []);