From 6382e548547cce095d25048238580d1ebec2ebe3 Mon Sep 17 00:00:00 2001 From: Edvins Antonovs Date: Fri, 12 May 2017 22:31:23 +0100 Subject: [PATCH] Fixed issue with missing error --- auth/client/src/actions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/client/src/actions/index.js b/auth/client/src/actions/index.js index 616738ff..2314048b 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))); } }