fix: another temp fix for edit page crashing?

This commit is contained in:
trafficlunar 2026-03-27 22:25:33 +00:00
parent 3a1d01d662
commit 85aea08007
2 changed files with 3 additions and 3 deletions

View file

@ -337,7 +337,7 @@ export default function SubmitForm() {
<div className="flex flex-col items-center gap-2">
<SwitchFileUpload text="a screenshot of your Mii here" image={miiPortraitUri} setImage={setMiiPortraitUri} forceCrop />
<SwitchFileUpload text="a screenshot of your Mii's features here" setImage={setMiiFeaturesUri} />
<SwitchFileUpload text="a screenshot of your Mii's features here" image={miiFeaturesUri} setImage={setMiiFeaturesUri} />
<SwitchSubmitTutorialButton />
</div>

View file

@ -24,8 +24,8 @@ export default function OtherTab({ instructions }: Props) {
const [colors, setColors] = useState<number[]>(() =>
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;
}),
);