Merge pull request #4898 from owncloud/fix-user-consent-after-client-login

fix: clear loading state if consent or logon received
This commit is contained in:
Michael Barz
2022-10-25 20:13:30 +02:00
committed by GitHub
+4 -7
View File
@@ -32,13 +32,10 @@ function loginReducer(state = {
case RECEIVE_CONSENT:
case RECEIVE_LOGON:
if (!action.success) {
return Object.assign({}, state, {
errors: action.errors ? action.errors : {},
loading: ''
});
}
return state;
return Object.assign({}, state, {
errors: !action.success && action.errors ? action.errors : {},
loading: ''
});
case RECEIVE_LOGOFF:
return Object.assign({}, state, {