diff --git a/components/NewGameBan.tsx b/components/NewGameBan.tsx index c17aad0..390eac9 100644 --- a/components/NewGameBan.tsx +++ b/components/NewGameBan.tsx @@ -170,6 +170,20 @@ export default function (props: { isOpen: boolean; onClose: () => void }) { return; } + + await fetch("/api/reports/complete", { + body: JSON.stringify({ id }), + headers: { + "content-type": "application/json", + }, + method: "POST", + }); + + useToast()({ + description: "User moderated", + status: "success", + title: "Success", + }); } return (