diff --git a/auth/client/src/actions/index.js b/auth/client/src/actions/index.js index 616738f..2314048 100644 --- a/auth/client/src/actions/index.js +++ b/auth/client/src/actions/index.js @@ -38,7 +38,7 @@ export function signupUser({ email, password }) { localStorage.setItem('token', response.data.token); browserHistory.push('/feature'); }) - .catch(response => dispatch(authError(response.data.error))); + .catch(error => dispatch(authError(error.response.data.error))); } }