From 65b058f1eac4bfd0c42b3d474ba404b9f4281f7d Mon Sep 17 00:00:00 2001 From: Trevor Gerhardt Date: Mon, 21 Nov 2016 15:48:28 +0800 Subject: [PATCH] fix(routes): Use a default color if the route_color is missing --- src/components/route-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/route-card.js b/src/components/route-card.js index ee7ba38..115e478 100644 --- a/src/components/route-card.js +++ b/src/components/route-card.js @@ -146,7 +146,7 @@ function extractRelevantTransitiveInfo ({ const pid = s.pattern_id || s.patterns[0].pattern_id const seg = {} const route = findRouteForPattern({id: pid, patterns, routes}) - const color = route.route_color ? Color(`#${route.route_color}`) : Color(s.color) + const color = route.route_color ? Color(`#${route.route_color}`) : Color('#0b2b40') seg.name = toCapitalCase(route.route_short_name) if (s.patterns && s.patterns.length > 0) {