diff options
| author | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-27 16:38:20 -0700 |
|---|---|---|
| committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-27 16:38:20 -0700 |
| commit | 5cfced8a33a5f8eaa14e0549ee4b013bafa0833c (patch) | |
| tree | 62a425832632bc4fa041f3b330f885c8fa6d4c26 /src/store/reducers | |
| parent | caac607ed90c35ad8d4b2787b170e1fd1f165333 (diff) | |
Added badges to store
Diffstat (limited to 'src/store/reducers')
| -rw-r--r-- | src/store/reducers/userReducer.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/store/reducers/userReducer.ts b/src/store/reducers/userReducer.ts index a8789c1d..97bf845c 100644 --- a/src/store/reducers/userReducer.ts +++ b/src/store/reducers/userReducer.ts @@ -42,6 +42,10 @@ const userDataSlice = createSlice({ } }, + profileBadgesUpdated: (state, action) => { + state.profile.badges = action.payload.badges; + }, + profileCompletionStageUpdated: (state, action) => { state.profile.profile_completion_stage = action.payload.stage; }, @@ -90,6 +94,7 @@ export const { setReplyPosted, setSuggestedPeopleImage, clearHeaderAndProfileImages, + profileBadgesUpdated, // setChatClientReady, } = userDataSlice.actions; export const userDataReducer = userDataSlice.reducer; |
