From 78443975172de6d71d6ab2d7cf6ad2d4492ed4ce Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Thu, 1 Sep 2022 17:02:02 +0100 Subject: [PATCH] Bug fix that forced going into the quiz --- client/src/views/Home.vue | 4 +--- client/src/views/about/Index.vue | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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()