Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make request to complete endpoint on finish
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent bdeb84d commit ac53ccb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions components/NewGameBan.tsx
Expand Up @@ -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 (
Expand Down

0 comments on commit ac53ccb

Please sign in to comment.