- console.log(realIndex);
- if (assessment.index == assessment.questions.length - 1)
- this.$emit("gameover");
- else
- assessment.index++;
- this.$forceUpdate(); //TODO: shouldn't be required
+ let gotoNext = () => {
+ if (assessment.index == assessment.questions.length - 1)
+ this.$emit("gameover");
+ else
+ assessment.index++;
+ this.$forceUpdate(); //TODO: shouldn't be required
+ };