mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-06 15:18:48 +00:00
Added type to components/UserAvatar.tsx line: 18
This commit is contained in:
parent
43f437ba98
commit
b3fb8a809a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue