DB journeys: make default price null 💥

closes #91
This commit is contained in:
Jannis R 2019-03-11 11:10:21 +01:00
parent 1afe4caf41
commit b8496be1a3
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -100,6 +100,7 @@ const createParseJourney = (profile, opt, data) => {
const parseJourneyWithPrice = (j) => { const parseJourneyWithPrice = (j) => {
const res = parseJourney(j) const res = parseJourney(j)
res.price = null
// todo: find cheapest, find discounts // todo: find cheapest, find discounts
// todo: write a parser like vbb-parse-ticket // todo: write a parser like vbb-parse-ticket
// [ { // [ {
@ -110,7 +111,6 @@ const createParseJourney = (profile, opt, data) => {
// targetCtx: 'D', // targetCtx: 'D',
// buttonText: 'To offer selection' // buttonText: 'To offer selection'
// } ] // } ]
res.price = {amount: null, hint: 'No pricing information available.'}
if ( if (
j.trfRes && j.trfRes &&
Array.isArray(j.trfRes.fareSetL) && Array.isArray(j.trfRes.fareSetL) &&