diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index a7bd698..853cdfc 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -1,106 +1,108 @@ - - - + + + diff --git a/src/components/Quiz.vue b/src/components/Quiz.vue index d802766..6429f43 100644 --- a/src/components/Quiz.vue +++ b/src/components/Quiz.vue @@ -262,13 +262,13 @@ export default { : await this.getQuestionsFromAPIForNewQuiz() - this.mode.gameMode !== "zen" && await this.createQuizAndMatchOnDB() + useSessionStore().user.isConnected && this.mode.gameMode !== "zen" && await this.createQuizAndMatchOnDB() }, watch: { counter(value) { // when matches finish and game mode is not zen - if (value>this.questions.length-1 && this.mode.gameMode !== "zen") this.handleFinishedQuiz() + if (useSessionStore().user.isConnected && value>this.questions.length-1 && this.mode.gameMode !== "zen") this.handleFinishedQuiz() }, } @@ -277,11 +277,7 @@ export default {