From f3f84961eb9ddf3dacfb3e4bf5c56504303c048f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 17 Sep 2018 12:54:23 +0200 Subject: redirects work --- app/client/auth/auth.actions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/client/auth/auth.actions.js') diff --git a/app/client/auth/auth.actions.js b/app/client/auth/auth.actions.js index aa46d1b..956e7b0 100644 --- a/app/client/auth/auth.actions.js +++ b/app/client/auth/auth.actions.js @@ -49,7 +49,7 @@ export function login(username, password) { dispatch(setCurrentUser(data.user)) }) .catch(error => { - console.error(error) + console.error('login error', error) dispatch(setError(true)) }) } @@ -66,7 +66,7 @@ export function signup(data) { dispatch(setCurrentUser(data.user)) }) .catch(error => { - console.error(error) + console.error('signup error', error) dispatch(initialized()) }) } @@ -83,7 +83,7 @@ export function checkin() { dispatch(setCurrentUser(data.user)) }) .catch(error => { - console.error('err', error) + console.error('checkin error', error) dispatch(initialized()) }) } @@ -100,7 +100,7 @@ export function logout() { dispatch(initialized()) }) .catch(error => { - console.error('err', error) + console.error('logout error', error) dispatch(clearCurrentUser()) dispatch(initialized()) }) -- cgit v1.2.3-70-g09d2