We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b04e5 commit a7b11deCopy full SHA for a7b11de
lib/components/narrative/default/default-itinerary.js
@@ -134,7 +134,7 @@ const ITINERARY_ATTRIBUTES = [
134
const fareInCents = getTotalFare(itinerary, options.configCosts, defaultFareKey)
135
const fareCurrency = itinerary.fare?.fare?.regular?.currency?.currencyCode
136
const fare = fareInCents === null ? null : fareInCents / 100
137
- if (fare === null) return <FormattedMessage id="common.itineraryDescriptions.noTransitFareProvided" />
+ if (fare === null || fare < 0) return <FormattedMessage id="common.itineraryDescriptions.noTransitFareProvided" />
138
return (
139
<FormattedNumber
140
// Currency from itinerary fare or from config.
0 commit comments