Skip to content

Commit

Permalink
Update featurePodcast.js
Browse files Browse the repository at this point in the history
fix(FeaturePodcast): exclude podcast link when media type is video

When the media type is "video", the podcast link was mistakenly being rendered above the video player.
This update adds a conditional check to ensure that the podcast link is only rendered for
non-video content, addressing the UI issue reported.

Signed-off-by: Prabal Thool <[email protected]>
  • Loading branch information
prab0007al authored Feb 3, 2025
1 parent 1f13a2b commit f10b59b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/components/featurePodcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default function FeaturePodcast(props) {
}
{props.type === "video" &&
<VideoPlayer scsrc={props.src} />
}
{defined(props.podcastUrl) && props.podcastUrl !== '' &&
<a href={props.podcastUrl}>{props.podcast}</a>
}
{props.type !== "video" && defined(props.podcastUrl) && props.podcastUrl !== '' &&
<a href={props.podcastUrl}>{props.podcast}</a>
}
{defined(props.description) && props.description !== '' &&
<p>{props.description}</p>
Expand Down

0 comments on commit f10b59b

Please sign in to comment.