From e83901076f3d15f5d601d53237f886b7bc34f50b Mon Sep 17 00:00:00 2001
From: LarsVomMars
Date: Fri, 29 Jan 2021 13:42:31 +0100
Subject: Hmm
---
profile/public/user.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'profile/public/user.js')
diff --git a/profile/public/user.js b/profile/public/user.js
index 9a55682..6dfb95b 100644
--- a/profile/public/user.js
+++ b/profile/public/user.js
@@ -10,10 +10,10 @@ function addUser(userData) {
const questions = userData.questions;
const user = userData.user;
for (const questionID in questions) {
- if (!questions.hasOwnProperty(questionID)) continue;
+ if (!questions.hasOwnProperty(questionID) || questions[questionID].type === "file") continue;
const question = questions[questionID];
const div = document.createElement("div");
- div.innerHTML = `${question.question.replace(//g, ">")} ${question.answer.replace(//g, ">") || ""}`;
+ div.innerHTML = `${question.question.replace(//g, ">")} ${(question.answer || "Hitler").replace(//g, ">") || ""}`;
divs.push(div);
}
const h1 = document.createElement("h1");
--
cgit v1.2.3