mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: course author avatar issue
This commit is contained in:
parent
a0966e90e3
commit
6650a82d3a
2 changed files with 2 additions and 5 deletions
|
|
@ -276,10 +276,7 @@ const CourseClient = (props: any) => {
|
|||
<div className="flex flex-col mx-auto space-y-3 px-2 py-2 items-center">
|
||||
<UserAvatar
|
||||
border="border-8"
|
||||
avatar_url={getUserAvatarMediaDirectory(
|
||||
course.authors[0].user_uuid,
|
||||
course.authors[0].avatar_image
|
||||
)}
|
||||
avatar_url={course.authors[0].avatar_image ? getUserAvatarMediaDirectory(course.authors[0].user_uuid, course.authors[0].avatar_image) : ''}
|
||||
width={100}
|
||||
/>
|
||||
<div className="-space-y-2 ">
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ function UserAvatar(props: UserAvatarProps) {
|
|||
}
|
||||
|
||||
useEffect(() => {
|
||||
console.log('params', params)
|
||||
|
||||
}, [session])
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue