From 0faad7fc879de9de6200526afe8a4419022eaaa3 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Mon, 30 Jul 2018 21:19:35 -0400 Subject: Added a quick change to diplay email instead of uid. Also, changed a few small things on mao-tutoring.js --- src/actions/firebase.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/actions') 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 }); -- cgit v1.2.3-70-g09d2