diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-02-09 11:25:10 -0500 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-02-09 11:25:10 -0500 |
| commit | a25ec0b95017a9b6e0c3392f8fe1ad4c604de520 (patch) | |
| tree | 370d6144466ffb82937adfb3a7737374656e67ed /src/store/reducers | |
| parent | f28ef2d4ac61475d7bd9728634b80f7c0760ff58 (diff) | |
added newVersionAvailable to store, added logic to request newest version
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 1e575339..29ec38cc 100644 --- a/src/store/reducers/userReducer.ts +++ b/src/store/reducers/userReducer.ts @@ -57,6 +57,10 @@ const userDataSlice = createSlice({ setReplyPosted: (state, action) => { state.replyPosted = action.payload.replyPosted; }, + + setNewVersionAvailable: (state, action) => { + state.newVersionAvailable = action.payload.newVersionAvailable; + }, }, }); @@ -66,6 +70,7 @@ export const { socialEdited, profileCompletionStageUpdated, setIsOnboardedUser, + setNewVersionAvailable, setNewNotificationReceived, setReplyPosted, } = userDataSlice.actions; |
