diff --git a/user-profile.php b/user-profile.php
index 39c1704..2ef3975 100644
--- a/user-profile.php
+++ b/user-profile.php
@@ -261,14 +261,16 @@ if ($_SESSION["isVendor"] == true) {
@@ -891,7 +894,7 @@ if ($_SESSION["isVendor"] == true) {
const city = $('#citySelect :selected').text();
const barangay = $('#barangaySelect :selected').text();
const country = $('#addressCountry').val();
-
+
// Create a new address object
const newAddress = {
@@ -1156,8 +1159,8 @@ if ($_SESSION["isVendor"] == true) {
sCountryElement.textContent = customerData.address[addressIndex].country;
}
console.log(`Address updated successfully for customer ${customerId}`);
- // location.reload();
- // header("location: user-profile.php");
+ location.reload();
+ header("location: user-profile.php");
} catch (error) {
console.error('Error updating address:', error.message);
}
@@ -1305,7 +1308,7 @@ if ($_SESSION["isVendor"] == true) {
-