mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Adding all the tests and fixes to the passengers app
This commit is contained in:
@@ -318,7 +318,7 @@ export default function ResultsPage() {
|
||||
);
|
||||
// Use displayAmountMinor (passenger's currency) so stored fare matches what the card showed.
|
||||
const minFare = coachType?.classes.length
|
||||
? Math.min(...coachType.classes.map((c) => c.baseFareMinor))
|
||||
? Math.min(...coachType.classes.map((c) => c.displayAmountMinor ?? c.baseFareMinor))
|
||||
: 0;
|
||||
const fareCurrency = displayCurrencyCode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user