diff --git a/ui/src/components/ContributionStats.tsx b/ui/src/components/ContributionStats.tsx index 897a595..6b910e2 100644 --- a/ui/src/components/ContributionStats.tsx +++ b/ui/src/components/ContributionStats.tsx @@ -120,22 +120,21 @@ export function ContributionStats() {
avg by weekday -
+
{stats.dayAvgs.map(({ name, avg }) => ( -
- {name} -
+
+ {avg.toFixed(1)} +
0 ? `${(avg / stats.maxAvg) * 100}%` : '0%', - height: '100%', + height: stats.maxAvg > 0 ? `${(avg / stats.maxAvg) * 100}%` : '0%', borderRadius: 3, backgroundColor: '#39d353', opacity: 0.7, }} />
- {avg.toFixed(1)} + {name}
))}