yet another dumb type error

This commit is contained in:
Polaris
2024-08-24 11:56:50 -04:00
parent bac288298b
commit 7e0d9a1023

View File

@ -150,7 +150,7 @@ export const MapIconCustomization: FC<SystemVoiceSelectionProps> = ({
> >
{field.value {field.value
? playerMapIconCustomization.mapIcon.find( ? playerMapIconCustomization.mapIcon.find(
(part) => part.id === field.value, (part) => part.id === Number(field.value),
)?.str )?.str
: "Select Map Icon"} : "Select Map Icon"}
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" /> <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
@ -173,7 +173,7 @@ export const MapIconCustomization: FC<SystemVoiceSelectionProps> = ({
<Check <Check
className={cn( className={cn(
"mr-2 h-4 w-4", "mr-2 h-4 w-4",
part.id === field.value part.id === Number(field.value)
? "opacity-100" ? "opacity-100"
: "opacity-0", : "opacity-0",
)} )}