From faf23ef42f1c67acc3b1ad07e239e3a27d37d203 Mon Sep 17 00:00:00 2001 From: Fabian Mendoza Date: Sun, 26 May 2024 02:31:40 -0400 Subject: [PATCH] test for mail --- src/flights/checkout.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flights/checkout.jsx b/src/flights/checkout.jsx index e022e17..eb0da84 100644 --- a/src/flights/checkout.jsx +++ b/src/flights/checkout.jsx @@ -46,7 +46,7 @@ const Checkout = () => { const pdfResponse = await axios.post("https://8ujhmk0td0.execute-api.us-east-2.amazonaws.com/Produccion2/reciept-dev-createPDF", { usuario: transaction.email, - vuelo: `${flightDetails.departure_airport.id} - ${flightDetails.arrival_airport.id}`, + vuelo: `${flightDetails[0].departure_airport.id} - ${flightDetails[0].arrival_airport.id}`, precio: transaction.amount });