commit e70c746f4cbf6d48cb5f3eab4012f5235080476a
parent 00ff825f6ee0b8c900c6e83a7a063c3a2b0cc768
Author: Yureka <yuka@yuka.dev>
Date: Sat, 10 Sep 2022 15:15:55 +0200
parent 00ff825f6ee0b8c900c6e83a7a063c3a2b0cc768
Author: Yureka <yuka@yuka.dev>
Date: Sat, 10 Sep 2022 15:15:55 +0200
object type station
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app_functions.js b/src/app_functions.js @@ -189,7 +189,7 @@ export const t = (key, ...params) => { export const parseName = (point) => { let nameHTML = ''; - if (point.type == 'stop') { + if (point.type === 'stop' || point.type === 'station') { nameHTML += point.name+ds100Names(point.id); } else if (point.type == 'location') { if (point.name) {
diff --git a/src/helpers.js b/src/helpers.js @@ -69,7 +69,7 @@ export const formatDuration = (duration) => { }; export const formatFromTo = obj => { - if (obj.type === 'stop') + if (obj.type === 'stop' || obj.type === 'station') return obj.id; else if (obj.address) return {