fix: make profile update after server response (#37154)
The Privacy component has been simplified and made to rely on the user prop rather than its own state. The submitProfileUIComplete reducer was missing so has been added.
This commit is contained in:
committed by
mrugesh
parent
7c31a49296
commit
ed015fb06f
@@ -375,7 +375,20 @@ export const reducer = handleActions(
|
||||
[settingsTypes.updateUserFlagComplete]: (state, { payload }) =>
|
||||
payload ? spreadThePayloadOnUser(state, payload) : state,
|
||||
[settingsTypes.verifyCertComplete]: (state, { payload }) =>
|
||||
payload ? spreadThePayloadOnUser(state, payload) : state
|
||||
payload ? spreadThePayloadOnUser(state, payload) : state,
|
||||
[settingsTypes.submitProfileUIComplete]: (state, { payload }) =>
|
||||
payload
|
||||
? {
|
||||
...state,
|
||||
user: {
|
||||
...state.user,
|
||||
[state.appUsername]: {
|
||||
...state.user[state.appUsername],
|
||||
profileUI: { ...payload }
|
||||
}
|
||||
}
|
||||
}
|
||||
: state
|
||||
},
|
||||
initialState
|
||||
);
|
||||
|
Reference in New Issue
Block a user