From 5ea22f7a59d4f90131eee047e21ce8c118cee1ea Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 3 Sep 2019 15:33:30 +0200 Subject: [PATCH] parseHint: parse code & text properly :bug: --- parse/hint.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parse/hint.js b/parse/hint.js index cb0499c5..d3d8aeba 100644 --- a/parse/hint.js +++ b/parse/hint.js @@ -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 } }