Преглед изворни кода

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

master
Adrien пре 3 година
родитељ
комит
a7f468888b
1 измењених фајлова са 2 додато и 1 уклоњено
  1. +2
    -1
      src/components/Battleground/Timer.vue

+ 2
- 1
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)
},


Loading…
Откажи
Сачувај