Fall back to zero as a default value on game appeals

This commit is contained in:
regalijan 2023-10-20 12:24:04 -04:00
parent 5a1a40f799
commit a9f04b99d1
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -26,7 +26,8 @@ export default function (props: GameAppealProps) {
async function performAction(action: "accept" | "deny"): Promise<void> { async function performAction(action: "accept" | "deny"): Promise<void> {
setLoading(true); setLoading(true);
const statsReduction = parseInt( const statsReduction = parseInt(
(document.getElementById("reductPercentage") as HTMLInputElement).value, (document.getElementById("reductPercentage") as HTMLInputElement | null)
?.value ?? "0",
); );
const actionResponse = await fetch( const actionResponse = await fetch(