diff options
| author | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-03-29 13:39:22 -0700 |
|---|---|---|
| committer | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-03-29 13:39:22 -0700 |
| commit | e8d862e5e6dd8a6a517a93c65e30795813af936d (patch) | |
| tree | 3ed42fb2a394eb3a8dd5fa1dadd5881ea87eb7cd /src/store | |
| parent | bc1f377dfe4033f2fad28b7852dc09a72e0bd43e (diff) | |
Logout changes
Diffstat (limited to 'src/store')
| -rw-r--r-- | src/store/actions/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/actions/user.ts b/src/store/actions/user.ts index cb5e3dc1..374154da 100644 --- a/src/store/actions/user.ts +++ b/src/store/actions/user.ts @@ -158,7 +158,7 @@ export const logout = (): ThunkAction< Action<string> > => async (dispatch) => { try { - AsyncStorage.clear(); + await AsyncStorage.clear(); dispatch({type: userLoggedIn.type, payload: {userId: '', username: ''}}); } catch (error) { console.log(error); |
