diff --git a/frontend/vanilla/html/userprofile.html b/frontend/vanilla/html/userprofile.html
index bbcbab0..d204bdd 100644
--- a/frontend/vanilla/html/userprofile.html
+++ b/frontend/vanilla/html/userprofile.html
@@ -10,7 +10,7 @@
-
+
-
+
Edit
@@ -74,7 +74,6 @@
// Retrieving the logged in user's profile
if (!idToDisplay || idToDisplay === 'me') {
- document.getElementById('editBadge').style.display = 'block'; // show edit button
const token = getCookie('token');
// Check whether the token exists
if (!token) {
@@ -86,6 +85,7 @@
"authorization": token
}
});
+ document.getElementById('editBadge').style.display = 'block'; // show edit button
} else {
response = await fetch(`${API_URL}/persons/${idToDisplay}/details`, {
headers: {
@@ -97,7 +97,7 @@
const data = await response.json();
if (response.ok) {
populateFields(data.display_name, data.email, data.about_me, data.qualification);
- document.getElementById('container').style.display = 'block'; // Show page
+ document.body.style.display = 'block'; // Show page
} else if (response.status == 401) {
window.location.href = 'login.html';
} else {
@@ -117,7 +117,7 @@
alert('Editing');
}
- function onSearchButtonClick(){
+ function onSearchButtonClick() {
alert('Searching for something...');
}