diff --git a/src/CharacterSheet.tsx b/src/CharacterSheet.tsx index a8dcac9..4f1aba7 100644 --- a/src/CharacterSheet.tsx +++ b/src/CharacterSheet.tsx @@ -302,7 +302,7 @@ export default function CharacterSheet() { ritualsNotes: d.rn ?? d.ritualsNotes ?? "", }); setLevel(d.lv ?? d.level ?? 1); - setFp(parseInt(d.fp) || 0); + setFp(parseInt(d.fp, 10) || 0); const sa = d.sa ?? d.statusesActive ?? []; setStatuses(Object.fromEntries(STATUSES.map((s) => [s, sa.includes(s)]))); diff --git a/src/components/MainPage.tsx b/src/components/MainPage.tsx index 69028ab..26c826f 100644 --- a/src/components/MainPage.tsx +++ b/src/components/MainPage.tsx @@ -401,7 +401,7 @@ export default function MainPage({ value={fp} min="0" max="20" - onChange={(e) => setFp(parseInt(e.target.value) || 0)} + onChange={(e) => setFp(parseInt(e.target.value, 10) || 0)} style={{ width: 70, textAlign: "center",