From 91c8088e1d7def9242f60c708cd34f25dcb77d76 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 15 Aug 2017 23:24:28 +0300 Subject: Connect to backend and fetch initial project data --- src/auth/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/auth') diff --git a/src/auth/index.js b/src/auth/index.js index 5ea24ff9..1bfc10c1 100644 --- a/src/auth/index.js +++ b/src/auth/index.js @@ -1,4 +1,4 @@ -import {COMPLETE_LOGIN, LOG_OUT} from "../actions/auth"; +import {LOG_IN_SUCCEEDED, LOG_OUT} from "../actions/auth"; const getAuthObject = () => { const authItem = localStorage.getItem("auth"); @@ -38,7 +38,7 @@ export const clearAuthLocalStorage = () => { export const authRedirectMiddleware = store => next => action => { switch (action.type) { - case COMPLETE_LOGIN: + case LOG_IN_SUCCEEDED: saveAuthLocalStorage(action.payload); window.location.href = "/projects"; break; -- cgit v1.2.3