Disable rehydration of error messages
Since errors are cleared before the state is rehydrated the clearing of the errors are dismissed when rehydrating. Thus we'll have to clear the errors whenever the state is being rehydrated.
This commit is contained in:
parent
4490cd0774
commit
a8c5586a34
|
|
@ -250,7 +250,7 @@ const reducer_userinfo = (state = defaultstate_userinfo, action) => {
|
|||
});
|
||||
return Object.assign({}, state, {});
|
||||
case actiontypes_userinfo.REHYDRATE:
|
||||
return Object.assign({}, state, action.parameters);
|
||||
return Object.assign({}, state, action.parameters, { error: false, errorMessages: [] });
|
||||
case actiontypes_userinfo.CLEAR:
|
||||
return Object.assign({}, state, {
|
||||
isSignedIn : false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue