diff options
Diffstat (limited to 'src/store/actions')
| -rw-r--r-- | src/store/actions/user.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/store/actions/user.ts b/src/store/actions/user.ts index 374154da..e7d985ac 100644 --- a/src/store/actions/user.ts +++ b/src/store/actions/user.ts @@ -8,6 +8,7 @@ import { import {UserType} from '../../types/types'; import {getTokenOrLogout} from '../../utils'; import { + clearHeaderAndProfileImages, profileCompletionStageUpdated, setIsOnboardedUser, setNewNotificationReceived, @@ -55,6 +56,18 @@ export const loadUserData = ( } }; +export const resetHeaderAndProfileImage = (): ThunkAction< + Promise<void>, + RootState, + unknown, + Action<string> +> => async (dispatch) => { + await dispatch({ + type: clearHeaderAndProfileImages.type, + payload: {}, + }); +}; + /** * To update editable socials * @param social social to be updated |
