Adding all the tests and fixes to the passengers app

This commit is contained in:
Muluhabt
2026-07-21 15:26:29 +03:00
parent f2ae9c883f
commit 7e6778d025
3279 changed files with 117 additions and 12612 deletions

View File

@@ -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;