diff --git a/js/auth.js b/js/auth.js index a035cf2..b4fbad0 100644 --- a/js/auth.js +++ b/js/auth.js @@ -393,7 +393,7 @@ const profileInitial = document.getElementById("profile-avatar-initial"); if (profileInitial) { - profileInitial.textContent = String(loggedInUser.name || "U").trim().charAt(0).toUpperCase() || "U"; + profileInitial.textContent = String(loggedInUser.name || "U").trim()[0].toUpperCase() || "U"; } }