Skip to content

Commit

Permalink
fix(routes): Use a default color if the route_color is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorgerhardt committed Nov 21, 2016
1 parent fd190b1 commit 65b058f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/route-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 65b058f

Please sign in to comment.