Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Close new game ban modal on close
  • Loading branch information
regalijan committed Nov 3, 2023
1 parent 7344545 commit daace88
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions components/NewGameBan.tsx
Expand Up @@ -173,6 +173,7 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
});

setLoading(false);
props.onClose();
}

return (
Expand Down Expand Up @@ -230,11 +231,7 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
<Td>{user}</Td>
<Td>
<RadioGroup
onChange={(val) =>
Object.defineProperty(actionMap, user, {
value: parseInt(val),
})
}
onChange={(val) => (actionMap[user] = parseInt(val))}
>
<VStack>
<Radio value="0">Do Nothing</Radio>
Expand Down

0 comments on commit daace88

Please sign in to comment.