From 15e59940c0d2b1f438eec26fd3506fdaa8ed061c Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 11 Mar 2019 11:10:21 +0100 Subject: [PATCH] DB journeys: make default price null :boom: closes #91 --- p/db/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p/db/index.js b/p/db/index.js index 5420663a3..197fdc48d 100644 --- a/p/db/index.js +++ b/p/db/index.js @@ -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 // [ { @@ -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) &&