diff options
Diffstat (limited to 'src/reducers/firebase.js')
-rw-r--r-- | src/reducers/firebase.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/reducers/firebase.js b/src/reducers/firebase.js index 5920910..773f874 100644 --- a/src/reducers/firebase.js +++ b/src/reducers/firebase.js @@ -9,9 +9,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN */ import { - AUTH_FAIL, AUTH_SUCCESS, AUTH_SIGN_OUT, + UPDATE_DIVISON, UPDATE_HOURS, UPDATE_REGISTERED_COMPETITIONS, UPDATE_FOURM_POSTS, @@ -21,23 +21,22 @@ import { } from '../actions/firebase.js'; -const firebase = (state = {initialized: false, authMessage: "", hours: -1, requestedHours: -1, uid: "", userEmail: "", registeredComps: [], fourmPosts: [], isAdmin: false, requests: [], compList: []}, action) => { +const firebase = (state = {initialized: false, hours: -1, requestedHours: -1, uid: "", userEmail: "", divison: "", registeredComps: [], fourmPosts: [], isAdmin: false, requests: [], compList: []}, action) => { switch (action.type) { case AUTH_SUCCESS: return { ...state, initialized: action.payload, - authMessage: action.code, uid: action.uid, userEmail: action.userEmail }; break; - case AUTH_FAIL: + case UPDATE_DIVISON: return { ...state, - authMessage: action.code - } + divison: action.payload + }; break; case AUTH_SIGN_OUT: |