Skip to content

Commit

Permalink
added dynamic id check on previous survey submission for userid
Browse files Browse the repository at this point in the history
  • Loading branch information
cShingleton committed Sep 22, 2017
1 parent 4b6f2b4 commit b82851f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/scenes/Speaker/SpeakerContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';

import { auth } from '../../config/firebase';
import Loader from '../../components/Loader';
import { goToSurvey } from '../../navigation/navHelpers';
import Speaker from './Speaker';
Expand Down Expand Up @@ -39,8 +40,7 @@ class SpeakerContainer extends Component {

checkRespondent = () => {
const currTalk = this.props.speakerData.item.talk_id;
// using a static id for testing
const currUser = 'dKJaZ8tuniPW1Ee2BduSQQ8wSsp2';
const currUser = auth.currentUser.uid;
return this.props.talkData[currTalk].respondents[currUser];
}

Expand Down

0 comments on commit b82851f

Please sign in to comment.