mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
fix DB hints parsing 🐛
This commit is contained in:
parent
c0a04fc74f
commit
fe8e68e4a2
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ const parseHint = (profile, h, icons) => {
|
|||
}
|
||||
|
||||
const res = _parseHint(profile, h, icons)
|
||||
if (h.txtN) {
|
||||
if (res && h.txtN) {
|
||||
const text = trim(h.txtN.toLowerCase(), ' ()')
|
||||
if (codesByText[text]) res.code = codesByText[text]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue