refactor: shows 0 instead of nan for new users (#140)

This commit is contained in:
Sidharth Babu
2025-03-29 09:07:02 +05:30
committed by GitHub
parent bed8e31f51
commit 521511f86f
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@@ -15,7 +15,7 @@ node_modules
# Testing
coverage
.idea
# Turbo
.turbo

View File

@@ -239,7 +239,7 @@ const DashboardItemCard: React.FC<DashboardItemCardProps> = ({
{count}
</div>
{status !== "total" ? (
<div className="text-sm pb-1">{(percentage * 100).toFixed(0)}%</div>
<div className="text-sm pb-1">{count > 0 ? (percentage * 100).toFixed(0) : 0}%</div>
) : null}
</div>
</div>