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:
Jonny 2019-04-17 23:58:10 +02:00
parent 4490cd0774
commit a8c5586a34
1 changed files with 1 additions and 1 deletions

View File

@ -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,