diff --git a/user-profile.php b/user-profile.php
index 8e2c482..39c1704 100644
--- a/user-profile.php
+++ b/user-profile.php
@@ -532,11 +532,11 @@ if ($_SESSION["isVendor"] == true) {
})
.then(response => {
if (response.ok) {
- console.log('Email update successful');
+ console.log('Profile updated Successful');
location.reload();
// Handle any other actions after the successful email update
} else {
- console.error('Email update failed');
+ console.error('Profile Failed to Upload');
// Handle errors or display a message to the user
}
})
@@ -1253,10 +1253,10 @@ if ($_SESSION["isVendor"] == true) {
})
.then(secondResponse => {
if (secondResponse.ok) {
- console.log('Second request successful');
- location.reload();
+ console.log('Image Uploaded Successful');
+ // location.reload();
} else {
- console.error('Second request failed');
+ console.error('Image Failed to Upload');
}
})
.catch(error => {
@@ -1294,7 +1294,7 @@ if ($_SESSION["isVendor"] == true) {
aria-label="Close">Close
-->
-
+
diff --git a/vendor-settings.php b/vendor-settings.php
index 9e1800c..e987313 100644
--- a/vendor-settings.php
+++ b/vendor-settings.php
@@ -640,11 +640,11 @@ if ($_SESSION["isCustomer"] == true) {
})
.then(response => {
if (response.ok) {
- console.log('Email update successful');
+ console.log('Profile updated successful');
location.reload();
// Handle any other actions after the successful email update
} else {
- console.error('Email update failed');
+ console.error('Profile failed to update');
// Handle errors or display a message to the user
}
})
@@ -1492,10 +1492,10 @@ if ($_SESSION["isCustomer"] == true) {
})
.then(secondResponse => {
if (secondResponse.ok) {
- console.log('Second request successful');
- location.reload();
+ console.log('Profile Image Uploaded Successful');
+ // location.reload();
} else {
- console.error('Second request failed');
+ console.error('Profile Image Failed to Upload');
}
})
.catch(error => {
@@ -1585,10 +1585,10 @@ if ($_SESSION["isCustomer"] == true) {
})
.then(secondResponse => {
if (secondResponse.ok) {
- console.log('Second request successful');
- location.reload();
+ console.log('Profile Banner Uploaded Successful');
+ // location.reload();
} else {
- console.error('Second request failed');
+ console.error('Profile Banner Failed to Upload');
}
})
.catch(error => {