diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php index 8699365c..50ace6ba 100644 --- a/app/Views/policy_transaction_inception_form.php +++ b/app/Views/policy_transaction_inception_form.php @@ -5096,6 +5096,8 @@ function getVehicleFormData() { console.error('Error fetching data:', error); console.error(xhr.responseText); toastr.error('An error occurred while checking the CD amount.', 'ERROR'); + $('.loader').fadeOut(); + $('.loader-mask').delay(350).fadeOut('slow'); }); } @@ -5152,6 +5154,9 @@ function getClientFormData() { console.error('Error fetching data:', error); console.error(xhr.responseText); toastr.error('An error occurred while checking the CD amount.', 'ERROR'); + $('.loader').fadeOut(); + $('.loader-mask').delay(350).fadeOut('slow'); + });