File tree Expand file tree Collapse file tree
frontend/src/app/board/[year]/candidates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -458,7 +458,9 @@ const BoardCandidatesPage = () => {
458458 </ div >
459459 </ div >
460460 { snapshot . contributionHeatmapData &&
461- Object . keys ( snapshot . contributionHeatmapData ) . length > 0 && (
461+ Object . values ( snapshot . contributionHeatmapData ) . some (
462+ ( count ) => count > 0
463+ ) && (
462464 < div className = "mt-3" >
463465 < ContributionHeatmap
464466 contributionData = { snapshot . contributionHeatmapData }
@@ -619,7 +621,9 @@ const BoardCandidatesPage = () => {
619621
620622 { /* Slack Communications Heatmap */ }
621623 { snapshot ?. communicationHeatmapData &&
622- Object . keys ( snapshot . communicationHeatmapData ) . length > 0 && (
624+ Object . values ( snapshot . communicationHeatmapData ) . some (
625+ ( count ) => count > 0
626+ ) && (
623627 < div className = "mt-4 w-full border-t border-gray-200 pt-4 dark:border-gray-700" >
624628 < ContributionHeatmap
625629 contributionData = { snapshot . communicationHeatmapData }
You can’t perform that action at this time.
0 commit comments