Commit 32764f1e authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

profile user image avatar로 다시 변경

parent ac3ddf08
...@@ -59,7 +59,7 @@ export default function Profile() { ...@@ -59,7 +59,7 @@ export default function Profile() {
const user: Profile = await profileApi.profile(); const user: Profile = await profileApi.profile();
console.log("user in effect", user); console.log("user in effect", user);
setEmail(user.email); setEmail(user.email);
setAvatarUrl(user.fileInfo?.newfilename); setAvatarUrl(user.avatar?.newfilename);
setProfile({ ...profile, name: user.name }); setProfile({ ...profile, name: user.name });
}; };
getProfile(); getProfile();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment