fixed customization erros all using avatar instead of respected item

This commit is contained in:
Polaris
2024-08-26 16:38:35 -04:00
parent 23fe043cf1
commit 81b8a88397
4 changed files with 8 additions and 18 deletions

View File

@ -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);
}
};