File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src-ts/tools/learn/course-certificate/certificate-view
certificate/certificate-bg-pattern Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,11 @@ const CertificateView: FC<CertificateViewProps> = (props: CertificateViewProps)
6666 const {
6767 certification : certificate ,
6868 ready : certificateReady ,
69- } : AllCertificationsProviderData = useAllCertifications ( props . provider , course ?. certificationId )
69+ } : AllCertificationsProviderData = useAllCertifications (
70+ props . provider ,
71+ course ?. certificationId ,
72+ { enabled : ! ! course ?. certificationId }
73+ )
7074
7175 const ready : boolean = useMemo ( ( ) => (
7276 completedCertificateReady && courseReady && certificateReady
@@ -142,7 +146,7 @@ const CertificateView: FC<CertificateViewProps> = (props: CertificateViewProps)
142146 < >
143147 < LoadingSpinner hide = { ready } />
144148
145- { readyAndCompletedCertification && (
149+ { ready && readyAndCompletedCertification && (
146150 < div className = { styles [ 'wrap' ] } >
147151 < div className = { styles [ 'content-wrap' ] } >
148152 { ! props . hideActions && (
Original file line number Diff line number Diff line change 11import classNames from 'classnames'
22import { FC } from 'react'
33
4+ import { LearnCertificateTrackType } from '../../../../learn-lib'
5+
46import styles from './CertificateBgPattern.module.scss'
57
68interface CertificateBgPatternProps {
7- type : 'QA' | 'DEV' | 'DATASCIENCE' | 'DESIGN'
9+ type : LearnCertificateTrackType
810}
911
1012const CertificateBgPattern : FC < CertificateBgPatternProps > = ( props : CertificateBgPatternProps ) => {
You can’t perform that action at this time.
0 commit comments