diff options
author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-07-30 21:19:35 -0400 |
---|---|---|
committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-07-30 21:19:35 -0400 |
commit | 0faad7fc879de9de6200526afe8a4419022eaaa3 (patch) | |
tree | 944ced3dc2c37b80aed7ca0dd7d47b9af83698a7 /src/actions/firebase.js | |
parent | 936bbaa65fcb34c415991af95984b6b174f974b8 (diff) |
Added a quick change to diplay email instead of uid. Also, changed a few small things on mao-tutoring.js
Diffstat (limited to 'src/actions/firebase.js')
-rw-r--r-- | src/actions/firebase.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions/firebase.js b/src/actions/firebase.js index 65278fb..a9da36a 100644 --- a/src/actions/firebase.js +++ b/src/actions/firebase.js @@ -179,11 +179,11 @@ export const SNAPSHOT_FOURM = 'SNAPSHOT_FOURM'; export const UPDATE_FOURM_POSTS = 'UPDATE_FOURM_POSTS'; export const createFourmPost = (_subject, _content) => (dispatch, getState) => { - var docRef = firestore.collection('posts'); - const _uid = getState().firebase.uid; + var docRef = firestore.collection('posts'); + const userEmail = getState().firebase.userEmail; docRef.add({ - uid: _uid, + email: userEmail, subject: _subject, content: _content }); |