diff --git a/components/GameAppealCard.tsx b/components/GameAppealCard.tsx index 4a24d95..2a5f9d2 100644 --- a/components/GameAppealCard.tsx +++ b/components/GameAppealCard.tsx @@ -26,7 +26,8 @@ export default function (props: GameAppealProps) { async function performAction(action: "accept" | "deny"): Promise { setLoading(true); const statsReduction = parseInt( - (document.getElementById("reductPercentage") as HTMLInputElement).value, + (document.getElementById("reductPercentage") as HTMLInputElement | null) + ?.value ?? "0", ); const actionResponse = await fetch(