From 13bea835420457a9adda081a3965799c15107f9e Mon Sep 17 00:00:00 2001 From: Joel Therrien Date: Sun, 12 Jan 2025 13:49:53 -0800 Subject: [PATCH] fix: "Return Tiles doesn't clear confirmed point total --- ui/src/Game.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/Game.tsx b/ui/src/Game.tsx index 370032d..d09b505 100644 --- a/ui/src/Game.tsx +++ b/ui/src/Game.tsx @@ -190,6 +190,7 @@ export function Game(props: { } return playerLetters.slice(); } else if (update.action === TileDispatchActionType.RETURN) { + setConfirmedScorePoints(-1); gridArrowDispatch({action: GridArrowDispatchActionType.CLEAR}); return mergeTrays(playerLetters, playerLetters); } else if (update.action === TileDispatchActionType.MOVE_TO_ARROW) {