Clear username on add

This commit is contained in:
2023-10-19 16:50:52 -04:00
parent 856fc4e84a
commit 49493cb334

View File

@ -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))