This commit is contained in:
RochesterX
2025-11-18 21:28:44 -05:00
parent 9e88712e9f
commit a5dde90d3c
3 changed files with 7 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ async function populateuserData() {
for (const [attribute, value] of Object.entries(user)) {
document.querySelectorAll(`.user-${attribute}`).forEach(element => {
if (attribute === "FirstName" && value === "") {
if (attribute === "FirstName" && !value) {
var text = element.textContent;
element.textContent = text.replace("%", user.Username);
}