Commit 0b24819 1 parent 5ae0460 commit 0b24819 Copy full SHA for 0b24819
File tree 2 files changed +3
-3
lines changed
app/(infoscreen)/@transit
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const renderStoptimes = (transitData: TransitData): JSX.Element[] => {
29
29
< p
30
30
className = {
31
31
'rounded-lg ' +
32
- ( Math . floor ( stoptime . trip . route . type / 100 ) == 7
32
+ ( stoptime . trip . route . mode == "BUS"
33
33
? 'bg-sky-800'
34
34
: 'bg-green-800' ) +
35
35
' px-2'
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export type TransitData = {
25
25
trip : {
26
26
tripHeadsign : string
27
27
route : {
28
- type : number
28
+ mode : string
29
29
}
30
30
routeShortName : string
31
31
}
@@ -90,7 +90,7 @@ export const getTransitData = async (stops: string[]): Promise<TransitData> => {
90
90
trip {
91
91
tripHeadsign
92
92
route {
93
- type
93
+ mode
94
94
}
95
95
routeShortName
96
96
}
You can’t perform that action at this time.
0 commit comments