Skip to content

Commit e2dd79a

Browse files
committed
TCA-513 - wait for course data to load before fetching ceritificate data
1 parent adb9dd6 commit e2dd79a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src-ts/tools/learn/course-details/CourseDetailsPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ const CourseDetailsPage: FC<{}> = () => {
5555
const {
5656
certification: certificate,
5757
ready: certificateReady,
58-
}: AllCertificationsProviderData = useAllCertifications(routeParams.provider, course?.certificationId)
58+
}: AllCertificationsProviderData = useAllCertifications(routeParams.provider, course?.certificationId, {
59+
enabled: courseReady
60+
})
5961

6062
// this looks better than finding workarounds for cyclomatic-complexity
6163
/* tslint:disable:cyclomatic-complexity */

0 commit comments

Comments
 (0)