Make game appeal actions ACTUALLY work now
This commit is contained in:
@ -29,15 +29,18 @@ export default function (props: GameAppealProps) {
|
||||
(document.getElementById("reductPercentage") as HTMLInputElement).value,
|
||||
);
|
||||
|
||||
const actionResponse = await fetch(`/api/game-appeals/${props.roblox_id}`, {
|
||||
body: JSON.stringify({
|
||||
statsReduction: isNaN(statsReduction) ? 0 : statsReduction,
|
||||
}),
|
||||
headers: {
|
||||
"content-type": "application/json",
|
||||
const actionResponse = await fetch(
|
||||
`/api/game-appeals/${props.id}/${action}`,
|
||||
{
|
||||
body: JSON.stringify({
|
||||
statsReduction: isNaN(statsReduction) ? 0 : statsReduction,
|
||||
}),
|
||||
headers: {
|
||||
"content-type": "application/json",
|
||||
},
|
||||
method: "POST",
|
||||
},
|
||||
method: "POST",
|
||||
});
|
||||
);
|
||||
|
||||
useToast()(
|
||||
actionResponse.ok
|
||||
|
Reference in New Issue
Block a user