set error null for action.type AUTHENTICATE[REQUEST]

This commit is contained in:
Michael Bradley, Jr 2018-10-24 14:47:01 -05:00
parent d150deb572
commit 56177346df
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ function credentials(state = DEFAULT_CREDENTIALS_STATE, action) {
} }
if (action.type === AUTHENTICATE[REQUEST]) { if (action.type === AUTHENTICATE[REQUEST]) {
return {...state, ...{authenticating: true}}; return {...state, ...{authenticating: true, error: null}};
} }
return state; return state;