Skip to content

Commit

Permalink
세션 이미지가 있으면 세션 이미지를 사용하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
MU-Software committed Oct 1, 2024
1 parent e993ad6 commit 14472a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/Session/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ const SessionItem: React.FC<{ session: APIPretalxSessions[0] }> = ({ session })
const t = useTranslation();
const navigate = useNavigate();

const speakerImageSrc = R.isArray(session.speakers) && !R.isEmpty(session.speakers) && session.speakers[0].avatar || ""
const speakerImageSrc = (
session.image
|| R.isArray(session.speakers) && !R.isEmpty(session.speakers) && session.speakers[0].avatar
|| ""
)

return (
<SessionItemEl>
Expand Down

0 comments on commit 14472a1

Please sign in to comment.