Bug fix that forced going into the quiz

This commit is contained in:
Vivek Santayana 2022-09-01 17:02:02 +01:00
parent a943cf8f96
commit 7844397517
2 changed files with 2 additions and 6 deletions

View File

@ -23,9 +23,7 @@
}
},
mounted() {
if (this.answersStore.quizCurrent !== null) {
this.$router.push(`/quiz/question/${this.answersStore.quizCurrent}`)
} else {
if (this.answersStore.quizCurrent == null) {
this.answersStore.$reset()
}
this.resultsStore.$reset()

View File

@ -17,9 +17,7 @@
}
},
mounted() {
if (this.answersStore.quizCurrent !== null) {
this.$router.push(`/quiz/question/${this.answersStore.quizCurrent}`)
} else {
if (this.answersStore.quizCurrent == null) {
this.answersStore.$reset()
}
this.resultsStore.$reset()