fix(ui) - password update reset errors
This commit is contained in:
parent
3176cd0583
commit
13357a9c25
1 changed files with 3 additions and 1 deletions
|
|
@ -56,10 +56,12 @@ const reducer = (state = initialState, action = {}) => {
|
|||
return state.set('jwt', action.data);
|
||||
case LOGIN.REQUEST:
|
||||
return state.set('loginRequest', { loading: true, errors: [] })
|
||||
case UPDATE_PASSWORD.REQUEST:
|
||||
return state.set('passwordErrors', List())
|
||||
case RESET_PASSWORD.SUCCESS:
|
||||
case UPDATE_PASSWORD.SUCCESS:
|
||||
case LOGIN.SUCCESS:
|
||||
state.set('account', Account({...action.data.user })).set('loginRequest', { loading: false, errors: [] }).set('passwordErrors', List())
|
||||
return state.set('account', Account({...action.data.user })).set('loginRequest', { loading: false, errors: [] })
|
||||
case SIGNUP.SUCCESS:
|
||||
state.set('account', Account(action.data.user)).set('onboarding', true);
|
||||
case REQUEST_RESET_PASSWORD.SUCCESS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue