Merge pull request #297 from Tria-plc/alpha

Build issues resolution
This commit is contained in:
Eyob T.
2026-06-26 07:25:09 +03:00
committed by GitHub

View File

@@ -158,7 +158,7 @@ export default function ResultsPage() {
}
// Find the coach type to get pricing info
const coachType = schedule.coachTypes?.find(ct => ct.coachTypeId === selectedCoachType.id);
const coachType = schedule.coachTypes?.find(ct => ct.coachTypeCode === selectedCoachType.code);
const minFare = coachType?.classes.length ? Math.min(...coachType.classes.map(c => c.baseFareMinor)) : 0;
const hours = Math.floor((schedule.durationMinutes || 0) / 60);