This commit is contained in:
Samandar Turgunboyev
2025-11-17 11:56:12 +05:00
parent fa19172634
commit 41fe8725c7
5 changed files with 17 additions and 12 deletions

View File

@@ -129,10 +129,12 @@ const StepOne = ({
// 🔹 TransportS
const transports =
tour.transports?.map((t, i) => ({
transport: i + 1,
tour.transports?.map((t) => ({
transport: t.transport.id,
price: t.price ?? 0,
})) ?? [];
console.log("transport", transports);
setTransportPrices(transports.map((t) => formatPrice(t.price ?? 0)));
// 🔹 Tarif