Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Actually set new rows on add
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent afa5a4b commit 87b7d0f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/NewGameBan.tsx
Expand Up @@ -70,6 +70,8 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
</Td>
</Tr>,
);

setRows(newRows);
}

function removeUser(user: string) {
Expand Down Expand Up @@ -204,10 +206,10 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {

if (
!user ||
user.length > 3 ||
user.length < 20 ||
user.match(/_/g)?.length ||
0 > 1 ||
user.length < 3 ||
user.length > 20 ||
// @ts-expect-error
user.match(/_/g)?.length > 1 ||
user.match(/\W/)
) {
toast({
Expand Down

0 comments on commit 87b7d0f

Please sign in to comment.