Skip to content

Commit

Permalink
Merge pull request #18 from cloudnativedaysjp/fix/page2_dummy_img
Browse files Browse the repository at this point in the history
fix: Show dummy img when avatarUrl is dummy.png
  • Loading branch information
Gaku-Kunimi authored Dec 12, 2023
2 parents 4b9bba8 + 387343f commit e358712
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Page2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ function Track({ talk, track, speakers }: TrackProps) {
return <></>
}
const companies = new Set(speakers.map((s) => s.company))
const avatarUrl = speakers[0].avatarUrl || '/cndt2023/trademark.png'
const re = /https:\/\/.*/
const avatarUrl = re.test(speakers[0].avatarUrl || '')
? speakers[0].avatarUrl!
: '/cndt2023/trademark.png'
return (
<div className="flex flex-row items-center text-gray-800 w-[900px] h-[300px]">
<div className="basis-1/3">
Expand Down

1 comment on commit e358712

@vercel
Copy link

@vercel vercel bot commented on e358712 Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web-interlude – ./

web-interlude-tkc66-buzzs-projects.vercel.app
web-interlude-git-main-tkc66-buzzs-projects.vercel.app

Please sign in to comment.