From c40030a13e70e6189cb37ed4001f0c30a14ae133 Mon Sep 17 00:00:00 2001 From: Florian Schmid Date: Wed, 26 Apr 2023 23:45:29 +0200 Subject: [PATCH] fix highscore bug --- src/newMode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newMode.ts b/src/newMode.ts index 23c0025..4aaffde 100644 --- a/src/newMode.ts +++ b/src/newMode.ts @@ -28,6 +28,7 @@ class UI { this.cpuName = document.getElementById("cpuName"); this.nextRound(); + this.updateScores(); this.buttons.forEach( (btn) => { @@ -62,7 +63,6 @@ class UI { ) this.model.nextRound(); - this.cpuName.innerText = this.model.currentCpu.name; this.model.Dates.forEach((value, index) =>