diff --git a/user-profile.php b/user-profile.php index e3ae4f4..b9e01b6 100644 --- a/user-profile.php +++ b/user-profile.php @@ -9,6 +9,7 @@ if ($_SESSION["userId"] <> "") { $customer_data = getCustomerbyLoginId($_SESSION["userId"]); } else { $_SESSION["isLoggedIn"] = false; + header("location: login.php"); } ?> @@ -513,7 +514,7 @@ if ($_SESSION["userId"] <> "") { }) .then(response => { if (response.ok) { - location.reload(); + // location.reload(); // filter the delete action document.getElementById('form-check-' + addressIndex).remove(); } else { diff --git a/vendor-dashboard.php b/vendor-dashboard.php index 38ae990..4223c08 100644 --- a/vendor-dashboard.php +++ b/vendor-dashboard.php @@ -265,7 +265,7 @@ if (is_array($vendorOrderss)) { } ?> --> -