Procházet zdrojové kódy

🐛: fix timer drop to negative if reset time is 0

master
Adrien před 3 roky
rodič
revize
a7f468888b
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      src/components/Battleground/Timer.vue

+ 2
- 1
src/components/Battleground/Timer.vue Zobrazit soubor

@@ -18,9 +18,10 @@
startTimer: function () {
this.stopTimer()
this.timerIntervalId = setInterval(() => {
this.currentTime--
if (this.currentTime === 0) {
this.stopTimer()
} else {
this.currentTime--
}
}, 1000)
},


Načítá se…
Zrušit
Uložit