diff --git a/src/components/submit-form/index.tsx b/src/components/submit-form/index.tsx index d3222b2..7937486 100644 --- a/src/components/submit-form/index.tsx +++ b/src/components/submit-form/index.tsx @@ -337,7 +337,7 @@ export default function SubmitForm() {
- +
diff --git a/src/components/submit-form/mii-editor/tabs/other.tsx b/src/components/submit-form/mii-editor/tabs/other.tsx index b1787cf..1b72e4f 100644 --- a/src/components/submit-form/mii-editor/tabs/other.tsx +++ b/src/components/submit-form/mii-editor/tabs/other.tsx @@ -24,8 +24,8 @@ export default function OtherTab({ instructions }: Props) { const [colors, setColors] = useState(() => TABS.map((t) => { - const entry = instructions.current.other[t.name]; - const color = "color" in entry ? entry.color : null; + const entry = instructions.current.other[t.name] ?? {}; + const color = entry && "color" in entry ? entry.color : null; return color ?? t.defaultColor ?? 0; }), );