Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clear username on add
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 856fc4e commit 49493cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/NewGameBan.tsx
Expand Up @@ -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))
Expand Down

0 comments on commit 49493cb

Please sign in to comment.