Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Close reduction modal on submit
  • Loading branch information
regalijan committed Nov 1, 2023
1 parent e40eb9e commit 6f2bb0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/GameAppealCard.tsx
Expand Up @@ -23,6 +23,7 @@ import { useState } from "react";
export default function (props: GameAppealProps & { port?: MessagePort }) {
const [loading, setLoading] = useState(false);
const [percentage, setPercentage] = useState(0);
const { isOpen, onClose, onOpen } = useDisclosure();
const toast = useToast();

async function performAction(action: "accept" | "deny"): Promise<void> {
Expand Down Expand Up @@ -59,11 +60,10 @@ export default function (props: GameAppealProps & { port?: MessagePort }) {
);

setLoading(false);
onClose();
props.port?.postMessage(`gma_${props.id}`);
}

const { isOpen, onClose, onOpen } = useDisclosure();

return (
<Card
id={`gma_${props.roblox_id}${props.created_at}`}
Expand Down

0 comments on commit 6f2bb0e

Please sign in to comment.