userbox v1
This commit is contained in:
@ -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>) {
|
||||
|
Reference in New Issue
Block a user