From fbd77dd06a321916ba0135a7227f509aec1472a9 Mon Sep 17 00:00:00 2001 From: Jono Cooper Date: Tue, 3 Sep 2019 08:12:40 +1200 Subject: [PATCH] Fix Transfers Colors --- src/waka-worker/lines/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/waka-worker/lines/index.ts b/src/waka-worker/lines/index.ts index 75362c0..747c7df 100644 --- a/src/waka-worker/lines/index.ts +++ b/src/waka-worker/lines/index.ts @@ -661,7 +661,7 @@ class Lines { const transfersWithColors = transfers.map(t => { const [agency, routeShortName] = t.split('/') - return [routeShortName, this.getColor(agency, t)] + return [routeShortName, this.getColor(agency, routeShortName)] }) transfersWithColors.sort(sortFn) @@ -753,7 +753,7 @@ class Lines { } const transfersWithColors = transfers.map(t => { const [agency, routeShortName] = t.split('/') - return [routeShortName, this.getColor(agency, t)] + return [routeShortName, this.getColor(agency, routeShortName)] }) transfersWithColors.sort(sortFn) i.stop_id = i.stop_code