Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Jan 31, 2022
1 parent b18e16e commit 9686a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export default class Question extends React.Component {
componentDidUpdate() {
const question = this.props.question;
const startingQuestionId = this.context.options.startingQuestionId;
const subQuestion = question[Constants.HAS_SUBQUESTION]
let isSubQuestionStartingQuestionId = subQuestion.find(o => o['@id'] === startingQuestionId);
const subQuestions = question[Constants.HAS_SUBQUESTION]
const isSubQuestionStartingQuestionId = subQuestions.find(o => o['@id'] === startingQuestionId);

if (FormUtils.isSection(question) && FormUtils.isAnswerable(question)) {
const answerValue = this._getFirstAnswerValue();
Expand Down

0 comments on commit 9686a55

Please sign in to comment.