diff --git a/client/src/views/Home.vue b/client/src/views/Home.vue index cbdc000..cb1d26d 100644 --- a/client/src/views/Home.vue +++ b/client/src/views/Home.vue @@ -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() diff --git a/client/src/views/about/Index.vue b/client/src/views/about/Index.vue index 2f5169c..7f01762 100644 --- a/client/src/views/about/Index.vue +++ b/client/src/views/about/Index.vue @@ -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()