fix(client): added conditional to check for 0 (#49465)

added condition to stop the render if 0
This commit is contained in:
David fox
2023-02-28 04:27:00 -07:00
committed by GitHub
parent 6c4c360139
commit 80c40227d9
@@ -91,6 +91,7 @@ export class CompletionModalBody extends PureComponent<
(project: { id: string }) => project.id === currentChallengeId
);
});
return (
<>
<div className='completion-challenge-details'>
@@ -130,7 +131,7 @@ export class CompletionModalBody extends PureComponent<
</div>
</div>
</div>
{isCertificationProject && (
{isCertificationProject && totalChallengesInBlock > 0 && (
<output>
{t('learn.project-complete', {
completedChallengesInBlock,