From 6e81d9de3cd44569aee0ec8e1809f8a639327c79 Mon Sep 17 00:00:00 2001 From: sharhio Date: Tue, 12 Nov 2024 15:57:09 +0200 Subject: [PATCH] DT-6494 use config when showing mobile price, lahti price off --- app/component/itinerary/MobileTicketPurchaseInformation.js | 4 +++- app/configurations/config.lahti.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/component/itinerary/MobileTicketPurchaseInformation.js b/app/component/itinerary/MobileTicketPurchaseInformation.js index 633c802239..5d3aa8e08d 100644 --- a/app/component/itinerary/MobileTicketPurchaseInformation.js +++ b/app/component/itinerary/MobileTicketPurchaseInformation.js @@ -22,7 +22,9 @@ export default function MobileTicketPurchaseInformation( config.availableTickets, ); const price = - fare.price > 0 ? `${fare.price.toFixed(2)} €`.replace('.', ',') : ''; + config.showTicketPrice && fare.price > 0 + ? `${fare.price.toFixed(2)} €`.replace('.', ',') + : ''; const faresInfo = () => { const header = `${intl.formatMessage({ diff --git a/app/configurations/config.lahti.js b/app/configurations/config.lahti.js index 73e87ec78d..44c351d4bb 100644 --- a/app/configurations/config.lahti.js +++ b/app/configurations/config.lahti.js @@ -176,7 +176,7 @@ export default configMerger(walttiConfig, { showTicketInformation: true, useTicketIcons: true, ticketLink: 'https://www.lsl.fi/liput-ja-hinnat/', - showTicketPrice: true, + showTicketPrice: false, showTicketLinkOnlyWhenTesting: true, settingsForFeatureTesting: {