From 46a210fcaedbb13266e615c303473ebf87f16c15 Mon Sep 17 00:00:00 2001 From: rsproule Date: Thu, 4 Jan 2024 17:34:40 -0500 Subject: [PATCH] nit: clear name field after submit --- frontend/src/components/tankGame/states/WaitingForPlayers.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/tankGame/states/WaitingForPlayers.tsx b/frontend/src/components/tankGame/states/WaitingForPlayers.tsx index 838d0ff..41605a5 100644 --- a/frontend/src/components/tankGame/states/WaitingForPlayers.tsx +++ b/frontend/src/components/tankGame/states/WaitingForPlayers.tsx @@ -90,6 +90,7 @@ export function WaitingForPlayers({ onClick={() => { write?.(); refetch?.(); + setPlayerName(""); }} disabled={!write} >