Skip to content

Commit aff31fa

Browse files
committed
make this page render
1 parent 534178e commit aff31fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/pages/courses/course-page-layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ const CoursePageLayout: React.FunctionComponent<CoursePageLayoutProps> = ({
5050
const {name: tagName, image_url: tagImage, slug: tagSlug} = primary_tag
5151

5252
const PlayButton = () => {
53-
return (
53+
return firstLessonURL ? (
5454
<Link href={firstLessonURL}>
5555
<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">
5656
<PlayIcon className="text-blue-100 mr-2" />
5757
Start Watching
5858
</a>
5959
</Link>
60-
)
60+
) : null
6161
}
6262

6363
return (

0 commit comments

Comments
 (0)