diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-15 23:24:28 +0300 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:42 +0200 |
| commit | 91c8088e1d7def9242f60c708cd34f25dcb77d76 (patch) | |
| tree | b68065019692cea5cf6c3d14b811104aff2f0879 /src/reducers/auth.js | |
| parent | d7512ace72448242b392299cf459c9c72c8dbee5 (diff) | |
Connect to backend and fetch initial project data
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; } -}; +} |
