yet another dumb type error
This commit is contained in:
@ -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",
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user