userbox v1

This commit is contained in:
Polaris
2024-07-26 15:15:13 -04:00
parent ce82e860bd
commit de16235316
7 changed files with 506 additions and 12 deletions

View File

@ -61,7 +61,7 @@ export const TrophyCustomization: FC<AvatarSelectionProps> = ({
const [trophyID, setTrophyId] = useState<number | undefined>(undefined);
useEffect(() => {
const fetchAvatarParts = async () => {
const fetchTrophies = async () => {
try {
const data = await getCurrentTrophies();
if (data.length > 0) {
@ -72,7 +72,7 @@ export const TrophyCustomization: FC<AvatarSelectionProps> = ({
}
};
fetchAvatarParts();
fetchTrophies();
}, []);
function onSubmit(data: z.infer<typeof FormSchema>) {