Ver a proveniência

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

master
Adrien há 3 anos
ascendente
cometimento
a7f468888b
1 ficheiros alterados com 2 adições e 1 eliminações
  1. +2
    -1
      src/components/Battleground/Timer.vue

+ 2
- 1
src/components/Battleground/Timer.vue Ver ficheiro

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


Carregando…
Cancelar
Guardar