action: default to bright green when there is no moment

Still unsure how we end up w/ invalid moments, but whatevs.
This commit is contained in:
Bogdan Popa committed 2022-12-02 08:46:53 +02:00
1 parent e40b929f43
commit b48b32f8eb
1 file changed
+1 -1
+1 -1
View File
@@ -81,7 +81,7 @@ function colorScale(steps, colors, reversed) {
function age(date) {
if (!date.add) {
return "red"
return "brightgreen"
}
const now = moment()