mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
parseHint: parse code & text properly 🐛
This commit is contained in:
parent
9a6bc2df0d
commit
5ea22f7a59
1 changed files with 3 additions and 2 deletions
|
@ -12,6 +12,7 @@ const codesByIcon = Object.assign(Object.create(null), {
|
|||
// "tagL": [
|
||||
// "RES_JNY_DTL" // only shown in journey detail
|
||||
// ]
|
||||
// todo: https://github.com/public-transport/hafas-client/issues/5
|
||||
const parseHint = (profile, h, _) => {
|
||||
// todo: C
|
||||
|
||||
|
@ -39,8 +40,8 @@ const parseHint = (profile, h, _) => {
|
|||
if (h.type === 'A' || h.type === 'I') {
|
||||
return {
|
||||
type: 'hint',
|
||||
code: h.code || null,
|
||||
text: h.txtN || null
|
||||
code,
|
||||
text
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue