From 49493cb334e8477b1cd5d13f1c72345e1daebbe8 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:52 -0400 Subject: [PATCH] Clear username on add --- components/NewGameBan.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/NewGameBan.tsx b/components/NewGameBan.tsx index 97f637e..f8e9263 100644 --- a/components/NewGameBan.tsx +++ b/components/NewGameBan.tsx @@ -46,6 +46,7 @@ export default function(props: { isOpen: boolean; onClose: () => void }) { }; function addUser(user: string) { + (document.getElementById("username") as HTMLInputElement).value = ""; const newUsers = [...users]; if (newUsers.includes(user))