From a7f468888b14eeb88acf83c5105ae32a46678a8d Mon Sep 17 00:00:00 2001 From: Adrien Agez Date: Mon, 13 Jul 2020 14:46:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B:=20fix=20timer=20drop=20to=20negat?= =?UTF-8?q?ive=20if=20reset=20time=20is=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Battleground/Timer.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Battleground/Timer.vue b/src/components/Battleground/Timer.vue index b5c4334..785892c 100644 --- a/src/components/Battleground/Timer.vue +++ b/src/components/Battleground/Timer.vue @@ -18,9 +18,10 @@ startTimer: function () { this.stopTimer() this.timerIntervalId = setInterval(() => { - this.currentTime-- if (this.currentTime === 0) { this.stopTimer() + } else { + this.currentTime-- } }, 1000) },