From 698849c49d4f9e31fb1fc83e0cbd3bf84658f4e5 Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 12 Jul 2021 02:43:11 +0200 Subject: [PATCH] Fix bug were owner would nog check turn --- src/views/Home.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 236c20a..92344d7 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -27,13 +27,14 @@ @@ -120,6 +121,9 @@ export default class Home extends Vue { if (this.gameJoined && this.playerId) { PerudoApi.instance.startGame(this.playerId).then((response: ApiObject) => { this.gameState = GameState.Started; + this.gameTimer = setInterval(() => { + this.checkTurn(); + }, 1000); }).catch((reason => { this.error = reason; }));