Skip to content

Commit

Permalink
refactored if statement of comment screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cShingleton committed Sep 22, 2017
1 parent 114c838 commit 4f17269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/scenes/Surveys/Pages/Surveys.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Surveys = ({
completePerc={questions.indexOf(question) + 1}
totalSteps={questions.length + 1}
/>
<RightNavArrow navAction={() => nextQuestionFunc((nextQuestion) ? nextQuestion.question : null)} />
<RightNavArrow navAction={() => nextQuestionFunc(nextQuestion && nextQuestion.question)} />
</View>
</View>
</ScrollView>
Expand Down

0 comments on commit 4f17269

Please sign in to comment.