From 9cd4538f679452b1e7a565152b7bc5768dd45adb Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Sat, 12 Aug 2023 18:46:55 +1000 Subject: [PATCH] Fix error and inconsistent UI when the opponent runs out of time --- TableturfBattleClient/src/TimeLabel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TableturfBattleClient/src/TimeLabel.ts b/TableturfBattleClient/src/TimeLabel.ts index 15827dc..7d51378 100644 --- a/TableturfBattleClient/src/TimeLabel.ts +++ b/TableturfBattleClient/src/TimeLabel.ts @@ -63,7 +63,7 @@ class TimeLabel { if (this.timeLeft == 0) { clearInterval(this.interval!); this.interval = null; - if (this.ontimeout) + if (this.ontimeout && !this.faded) this.ontimeout(); } if (!this.paused) {