diff --git a/src-ts/tools/learn/course-details/CourseDetailsPage.tsx b/src-ts/tools/learn/course-details/CourseDetailsPage.tsx index 968f38f58..1795fecfd 100644 --- a/src-ts/tools/learn/course-details/CourseDetailsPage.tsx +++ b/src-ts/tools/learn/course-details/CourseDetailsPage.tsx @@ -55,7 +55,9 @@ const CourseDetailsPage: FC<{}> = () => { const { certification: certificate, ready: certificateReady, - }: AllCertificationsProviderData = useAllCertifications(routeParams.provider, course?.certificationId) + }: AllCertificationsProviderData = useAllCertifications(routeParams.provider, course?.certificationId, { + enabled: courseReady, + }) // this looks better than finding workarounds for cyclomatic-complexity /* tslint:disable:cyclomatic-complexity */