Clear username on add
This commit is contained in:
parent
856fc4e84a
commit
49493cb334
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user