ensure badges show green if updated same day (#966)

This commit is contained in:
Mackenzie authored and GitHub committed 2021-12-03 10:09:53 +02:00
1 parent 19c8bf10d9
commit 23ffd9f467
1 file changed
+1 -1
+1 -1
View File
@@ -85,6 +85,6 @@ function age(date) {
if (now.diff(date) < 0) date.add(-1, 'y')
const daysElapsed = now.diff(moment(date), 'days')
const colorByAge = colorScale([1, 5, 10, 20, 25], undefined, false)
const colorByAge = colorScale([0, 5, 10, 20, 25], undefined, false)
return colorByAge(daysElapsed)
}