aboutsummaryrefslogtreecommitdiff
path: root/profile/public/user.js
diff options
context:
space:
mode:
authorMarvin Borner2021-01-29 14:10:17 +0100
committerMarvin Borner2021-01-29 14:10:17 +0100
commit8637186a9f835972a5a0b96e4df1665d6d42557a (patch)
tree5716f4d7095f675f6dc6ebffd68aa9fe701c74d4 /profile/public/user.js
parente83901076f3d15f5d601d53237f886b7bc34f50b (diff)
idk
Diffstat (limited to 'profile/public/user.js')
-rw-r--r--profile/public/user.js4
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, "&lt;").replace(/>/g, "&gt;")}</b> <span>${(question.answer || "Hitler").replace(/</g, "&lt;").replace(/>/g, "&gt;") || ""}</span>`;
+ div.innerHTML = `<b>${question.question.replace(/</g, "&lt;").replace(/>/g, "&gt;")}</b> <span>${
+ (question.answer || "nichts").replace(/</g, "&lt;").replace(/>/g, "&gt;") || ""
+ }</span>`;
divs.push(div);
}
const h1 = document.createElement("h1");