Safely convert to string (#1240)
This commit is contained in:
parent
855bfde79b
commit
1ebc0c9dd8
@ -8,7 +8,7 @@ const auth = (state = null, action) => {
|
||||
case AUTH_SUCCESS:
|
||||
return Immutable.fromJS({ user: action.payload });
|
||||
case AUTH_FAILURE:
|
||||
return Immutable.Map({ error: action.payload.toString() });
|
||||
return Immutable.Map({ error: action.payload && action.payload.toString() });
|
||||
case AUTH_REQUEST_DONE:
|
||||
return state.remove('isFetching');
|
||||
case LOGOUT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user