diff options
| author | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-03-17 15:59:53 -0700 |
|---|---|---|
| committer | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-03-29 12:07:22 -0700 |
| commit | ad70d44fd106c475ff3ecd680ebb41946e4dc363 (patch) | |
| tree | ad3d40b523b51d99e85c8ee5141636ac6dbc6567 /src/store/actions | |
| parent | ad2ad5d232473d38426c2f0f8283ba015dadfd4c (diff) | |
Tma 701 - New screens added, refactoring pending
Diffstat (limited to 'src/store/actions')
| -rw-r--r-- | src/store/actions/user.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/store/actions/user.ts b/src/store/actions/user.ts index 46f96d9a..cb5e3dc1 100644 --- a/src/store/actions/user.ts +++ b/src/store/actions/user.ts @@ -1,3 +1,4 @@ +import AsyncStorage from '@react-native-community/async-storage'; import {Action, ThunkAction} from '@reduxjs/toolkit'; import { getProfilePic, @@ -157,6 +158,7 @@ export const logout = (): ThunkAction< Action<string> > => async (dispatch) => { try { + AsyncStorage.clear(); dispatch({type: userLoggedIn.type, payload: {userId: '', username: ''}}); } catch (error) { console.log(error); |
