mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-07 01:18:47 +00:00
Added type to components/UserAvatar.tsx line: 18
This commit is contained in:
parent
a66f5e3b59
commit
e89444a8bd
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export default function UserAvatar({ username, size = 40 }: UserAvatarProps) {
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
const res = await api.get(`/profile/getProfilePicture/${username}`)
|
const res = await api.get(`/profile/getProfilePicture/${username}`)
|
||||||
setPb(res.data.url);
|
setPb((res.data as { url: string }).url);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue