Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fall back to zero as a default value on game appeals
  • Loading branch information
regalijan committed Oct 20, 2023
1 parent 5a1a40f commit a9f04b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/GameAppealCard.tsx
Expand Up @@ -26,7 +26,8 @@ export default function (props: GameAppealProps) {
async function performAction(action: "accept" | "deny"): Promise<void> {
setLoading(true);
const statsReduction = parseInt(
(document.getElementById("reductPercentage") as HTMLInputElement).value,
(document.getElementById("reductPercentage") as HTMLInputElement | null)
?.value ?? "0",
);

const actionResponse = await fetch(
Expand Down

0 comments on commit a9f04b9

Please sign in to comment.