From d091c45238af03c9287ded2c069c22f595f9d2d9 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sat, 9 Aug 2025 17:23:53 +0200 Subject: [PATCH] fix currentPlayer and lastPlayer values when playerName is changed --- public/trivabble.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/trivabble.js b/public/trivabble.js index 5f53c79..22399cc 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1141,6 +1141,12 @@ } else { blink(playerNameCell); } + if (currentPlayer === playerName) { + currentPlayer = newName; + } + if (lastPlayer === playerName) { + lastPlayer = newName; + } chatMessage("", format(_("{0} changed their name to {1}"), playerName, newName)); } } -- 2.30.2