From cc3619b9ea6bfaa8da683258b2fd88edc4ede1e8 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Thu, 5 Jun 2025 12:00:04 +0530 Subject: [PATCH] Fixed: console error during guest checkout --- themes/hotel-reservation-theme/js/order-opc.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/themes/hotel-reservation-theme/js/order-opc.js b/themes/hotel-reservation-theme/js/order-opc.js index 5855055de..854f90fbb 100644 --- a/themes/hotel-reservation-theme/js/order-opc.js +++ b/themes/hotel-reservation-theme/js/order-opc.js @@ -118,14 +118,12 @@ $(document).ready(function() validateCustomerGuestDetailForm(); } $(document).on('click', '.submit-guest-details', function(e) { - e.preventDefault(); if ($('#customer_guest_detail').prop('checked')) { validateCustomerGuestDetailForm(); + e.preventDefault(); if ($('#customer_guest_detail_form').find('.form-error').length == 0) { $('#customer_guest_detail_form').get(0).submit(); } - } else { - $('#customer_guest_detail_form').get(0).submit(); } });