Skip to content

Commit

Permalink
fix: show 0 when no data about allocation available
Browse files Browse the repository at this point in the history
  • Loading branch information
aziolek committed Aug 2, 2024
1 parent ee86fc2 commit 947c267
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ const ProjectDonorsHeader: FC<ProjectDonorsListProps> = ({
if (epochNumber === currentEpoch) {
return 0;
}
return isFetching ? '--' : projectDonors?.length;
if (isFetching) {
return '---';
}
return projectDonors?.length || '0';
}, [isFetching, projectDonors, epochNumber, currentEpoch]);

return (
Expand Down

0 comments on commit 947c267

Please sign in to comment.