Skip to content

Commit dcb2254

Browse files
committed
fix: use explicit null check for timeEstimate in DocsPageHeader
Falsy check would hide badge row when timeEstimate is 0
1 parent 4432455 commit dcb2254

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/components/docs/DocsPageHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export function DocsPageHeader({
2727

2828
<p className="text-xl text-gray-400 mb-4">{description}</p>
2929

30-
{(timeEstimate || difficulty) && (
30+
{(timeEstimate != null || difficulty) && (
3131
<div className="flex items-center gap-3">
32-
{timeEstimate && <TimeEstimate minutes={timeEstimate} />}
32+
{timeEstimate != null && <TimeEstimate minutes={timeEstimate} />}
3333
{difficulty && <DifficultyBadge level={difficulty} />}
3434
</div>
3535
)}

0 commit comments

Comments
 (0)