We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 534178e commit aff31faCopy full SHA for aff31fa
src/components/pages/courses/course-page-layout.tsx
@@ -50,14 +50,14 @@ const CoursePageLayout: React.FunctionComponent<CoursePageLayoutProps> = ({
50
const {name: tagName, image_url: tagImage, slug: tagSlug} = primary_tag
51
52
const PlayButton = () => {
53
- return (
+ return firstLessonURL ? (
54
<Link href={firstLessonURL}>
55
<a className="inline-flex justify-center items-center px-5 py-3 rounded-md bg-blue-600 text-white transition-all hover:bg-blue-700 ease-in-out duration-200">
56
<PlayIcon className="text-blue-100 mr-2" />
57
Start Watching
58
</a>
59
</Link>
60
- )
+ ) : null
61
}
62
63
return (
0 commit comments