Commit a44628e4 authored by Dhiraj Shrivastava's avatar Dhiraj Shrivastava
Browse files

fix: bug in new booking for non-stop flight

parent eb77c982
......@@ -135,14 +135,18 @@ export class NewBookingComponent implements OnInit {
if (this.non_stop_flight === true) {
req_payload.Flt_Details = this.flight_no_1;
// req_payload.Flt_Details = this.flight_no_1;
req_payload.Flt_Details = this.nonstop_flt_details[0].Flt_Details;
console.log("flt detaaa---", req_payload.Flt_Details);
}
this.selected_date = this.flight_booking.get("date").value;
// console.log("datee--", this.selected_date);
if (this.connecting_flight === true) {
req_payload.Flt_Details = this.flight_no_1;
req_payload.Flt_Details1 = this.flight_no_2;
//req_payload.Flt_Details = this.flight_no_1;
//req_payload.Flt_Details1 = this.flight_no_2;
req_payload.Flt_Details = this.connecting_flr_details[0].Flt_Details;
req_payload.Flt_Details1 = this.connecting_flr_details[1].Flt_Details;
console.log("flt detaaa---", req_payload.Flt_Details, req_payload.Flt_Details1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment