Skip to content

Commit

Permalink
DB journeys: make default price null 💥
Browse files Browse the repository at this point in the history
closes #91
  • Loading branch information
derhuerst committed Mar 12, 2019
1 parent 04c9a71 commit 15e5994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const createParseJourney = (profile, opt, data) => {
const parseJourneyWithPrice = (j) => {
const res = parseJourney(j)

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

0 comments on commit 15e5994

Please sign in to comment.