diff options
Diffstat (limited to 'profile/public/user.js')
-rw-r--r-- | profile/public/user.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/profile/public/user.js b/profile/public/user.js index 6dfb95b..963904c 100644 --- a/profile/public/user.js +++ b/profile/public/user.js @@ -13,7 +13,9 @@ function addUser(userData) { if (!questions.hasOwnProperty(questionID) || questions[questionID].type === "file") continue; const question = questions[questionID]; const div = document.createElement("div"); - div.innerHTML = `<b>${question.question.replace(/</g, "<").replace(/>/g, ">")}</b> <span>${(question.answer || "Hitler").replace(/</g, "<").replace(/>/g, ">") || ""}</span>`; + div.innerHTML = `<b>${question.question.replace(/</g, "<").replace(/>/g, ">")}</b> <span>${ + (question.answer || "nichts").replace(/</g, "<").replace(/>/g, ">") || "" + }</span>`; divs.push(div); } const h1 = document.createElement("h1"); |