mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): added conditional to check for 0 (#49465)
added condition to stop the render if 0
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user