diff --git a/components/NewGameBan.tsx b/components/NewGameBan.tsx index 4ab9bea..2bcbd2a 100644 --- a/components/NewGameBan.tsx +++ b/components/NewGameBan.tsx @@ -173,6 +173,7 @@ export default function (props: { isOpen: boolean; onClose: () => void }) { }); setLoading(false); + props.onClose(); } return ( @@ -230,11 +231,7 @@ export default function (props: { isOpen: boolean; onClose: () => void }) { {user} - Object.defineProperty(actionMap, user, { - value: parseInt(val), - }) - } + onChange={(val) => (actionMap[user] = parseInt(val))} > Do Nothing