Fix on button answer must past in current Question

pull/5960/head
Berkeley Martinez 2016-01-09 18:40:07 -08:00
parent 9acc946a4e
commit 850c63a0a0
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export default contain(
},
onAnswer(answer, userAnswer) {
const { isSignedIn, hike, hikesActions } = this.props;
const { isSignedIn, hike, currentQuestion, hikesActions } = this.props;
return (e) => {
if (e && e.preventDefault) {
e.preventDefault();
@ -99,6 +99,7 @@ export default contain(
return hikesActions.answer({
answer,
userAnswer,
currentQuestion,
hike,
isSignedIn
});