Fall back to zero as a default value on game appeals
This commit is contained in:
parent
5a1a40f799
commit
a9f04b99d1
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user