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/reducers/auth.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/reducers/auth.js') diff --git a/src/reducers/auth.js b/src/reducers/auth.js index 0d01b300..a65b3b3e 100644 --- a/src/reducers/auth.js +++ b/src/reducers/auth.js @@ -1,12 +1,12 @@ -import {COMPLETE_LOGIN, LOG_OUT} from "../actions/auth"; +import {LOG_IN_SUCCEEDED, LOG_OUT} from "../actions/auth"; -export const auth = (state = {}, action) => { +export function auth(state = {}, action) { switch (action.type) { - case COMPLETE_LOGIN: + case LOG_IN_SUCCEEDED: return action.payload; case LOG_OUT: return {}; default: return state; } -}; +} -- cgit v1.2.3