From e8d862e5e6dd8a6a517a93c65e30795813af936d Mon Sep 17 00:00:00 2001 From: ankit-thanekar007 Date: Mon, 29 Mar 2021 13:39:22 -0700 Subject: Logout changes --- src/store/actions/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/store') 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 > => async (dispatch) => { try { - AsyncStorage.clear(); + await AsyncStorage.clear(); dispatch({type: userLoggedIn.type, payload: {userId: '', username: ''}}); } catch (error) { console.log(error); -- cgit v1.2.3-70-g09d2