Skip to content

Commit 0c01245

Browse files
committed
Remove typecast, better to have a bad label if we add a new machine and don't update thos
1 parent aa6ce68 commit 0c01245

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/webapp/app/components/MachineLabelCombo.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ export function formatMachinePresetName(preset?: MachinePresetName | null): stri
5454
case "large-2x":
5555
return "Large 2x";
5656
default:
57-
// Fallback for any unknown presets - capitalize first letter and replace hyphens with spaces
58-
return (preset as string)
59-
.split("-")
60-
.map((word: string) => word.charAt(0).toUpperCase() + word.slice(1))
61-
.join(" ");
57+
return preset;
6258
}
6359
}

0 commit comments

Comments
 (0)