Skip to content

Commit

Permalink
fix: default error message should be an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
stropitek committed Apr 25, 2017
1 parent 7641069 commit e05c760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/reducers/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const loginReducer = (state = initialState, action) => {
case `${GET_LOGIN_PROVIDERS}_FULFILLED`:
return Object.assign({}, state, {loginProviders: action.payload});
case `${CHANGE_COUCHDB_PASSWORD}_FULFILLED`:
return Object.assign({}, state, {errors: {changePassword: action.payload.error || {}}});
return Object.assign({}, state, {errors: {changePassword: action.payload.error || ''}});
case `${CREATE_COUCHDB_USER}_FULFILLED`:
return Object.assign({}, state, {errors: {createUser: action.payload.error || {}}});
return Object.assign({}, state, {errors: {createUser: action.payload.error || ''}});
default:
return state;
}
Expand Down

0 comments on commit e05c760

Please sign in to comment.