mirror of
https://github.com/tiennm99/awesome-advent-of-code.git
synced 2026-10-14 06:17:29 +00:00
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:
1 file changed
+1
-1
@@ -81,7 +81,7 @@ function colorScale(steps, colors, reversed) {
|
||||
|
||||
function age(date) {
|
||||
if (!date.add) {
|
||||
return "red"
|
||||
return "brightgreen"
|
||||
}
|
||||
|
||||
const now = moment()
|
||||
|
||||
Reference in new issue
Block a user