diff options
Diffstat (limited to 'src/reducers/auth.js')
| -rw-r--r-- | src/reducers/auth.js | 8 |
1 files changed, 4 insertions, 4 deletions
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; } -}; +} |
