Added type to components/UserAvatar.tsx line: 18

This commit is contained in:
MisbehavedNinjaRadiator 2025-06-30 09:25:53 +02:00 committed by MisbehavedNinjaRadiator
parent a66f5e3b59
commit e89444a8bd

View file

@ -15,7 +15,7 @@ export default function UserAvatar({ username, size = 40 }: UserAvatarProps) {
(async () => {
try {
const res = await api.get(`/profile/getProfilePicture/${username}`)
setPb(res.data.url);
setPb((res.data as { url: string }).url);
} catch (error) {
console.log(error);
}