Update page.tsx

This commit is contained in:
Abubeker Yasin
2026-07-11 12:15:00 +03:00
parent 8f6fb27c32
commit 48c30d59f6

View File

@@ -402,6 +402,12 @@ export default function ReviewPage() {
passportNumber: !isEthiopian ? (p.passportNumber || '') : '',
passportCountry: !isEthiopian ? (p.passportCountry || '') : '',
nationality: p.nationality,
// Forward the contact details collected on the passengers page. The backend
// stores the first passenger's phone/email as the booking's contactPhone/
// contactEmail, which the notifications service uses to send the booking SMS
// and email. Omitting these leaves contactPhone null → "No SMS phone" warning.
...(p.phone ? { phone: p.phone } : {}),
...(p.email ? { email: p.email } : {}),
...(isRoundTrip
? { seatFareMinor: (p as any).outboundSeatFareMinor ?? undefined, returnSeatFareMinor: (p as any).inboundSeatFareMinor ?? undefined }
: { seatFareMinor: p.seatFareMinor ?? undefined }),