diff options
author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-09-13 17:41:10 -0400 |
---|---|---|
committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-09-13 17:41:10 -0400 |
commit | 79745ab407f66eda13f643193e67159aef547bd7 (patch) | |
tree | dffddf4347f8ca990af4a03492a05f9042cbbe05 /src/actions/firebaseAuth.js | |
parent | d625ff12ee205f835c049f6a0e27c53a7ecbda36 (diff) |
Fixed bugs with competitions. Also, allowed for stats divison to bee seen by admin for competition. Lastly, fixed some errors with admin controls after logging out.
Diffstat (limited to 'src/actions/firebaseAuth.js')
-rw-r--r-- | src/actions/firebaseAuth.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/actions/firebaseAuth.js b/src/actions/firebaseAuth.js index c3f277b..37f6643 100644 --- a/src/actions/firebaseAuth.js +++ b/src/actions/firebaseAuth.js @@ -52,7 +52,8 @@ import { } from './firebaseFirestore.js'; import { - adminListener + adminListener, + adminClose } from './firebaseAdmin.js' export const signIn = (_email, _password, divison) => (dispatch) => { @@ -89,5 +90,6 @@ export const signIn = (_email, _password, divison) => (dispatch) => { export const signOut = () => (dispatch) => { auth.signOut().then(() => { dispatch(authSignOut()); + dispatch(adminClose()); }); } |