fixed customization erros all using avatar instead of respected item
This commit is contained in:
@ -41,18 +41,18 @@ const getNamePlateTextures = (id: number | undefined) => {
|
||||
|
||||
type player_nameplates = cozynet_chuni_static_nameplate;
|
||||
|
||||
type AvatarSelectionProps = {
|
||||
type NamePlateSelectionProps = {
|
||||
playerNamePlateSelectionData: {
|
||||
namePlates: player_nameplates[];
|
||||
};
|
||||
};
|
||||
|
||||
export const NameplateCustomization: FC<AvatarSelectionProps> = ({
|
||||
export const NameplateCustomization: FC<NamePlateSelectionProps> = ({
|
||||
playerNamePlateSelectionData,
|
||||
}) => {
|
||||
const FormSchema = z.object({
|
||||
nameplateId: z.number({
|
||||
required_error: "Please select an Avatar Head Item.",
|
||||
required_error: "Please select an NamePlate Head Item.",
|
||||
}),
|
||||
});
|
||||
|
||||
@ -70,7 +70,7 @@ export const NameplateCustomization: FC<AvatarSelectionProps> = ({
|
||||
form.setValue("nameplateId", data[0].nameplateId as number);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error fetching avatar parts:", error);
|
||||
console.error("Error fetching NamePlate parts:", error);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user