aboutsummaryrefslogtreecommitdiff
path: root/profile/public
diff options
context:
space:
mode:
authorMarvin Borner2020-10-11 17:17:55 +0200
committerMarvin Borner2020-10-11 17:17:55 +0200
commitee5870afd6b713420ed4da9816de1a1d92333d33 (patch)
tree613d74e18fa6220508f4a05b2e7a23d9a3333aee /profile/public
parent0650cf0a0992e9f80df1bfe0085c949fbf46aa10 (diff)
Fixed some of Lars' Bugs ;)
Diffstat (limited to 'profile/public')
-rw-r--r--profile/public/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile/public/script.js b/profile/public/script.js
index 64ba0b6..2a170d2 100644
--- a/profile/public/script.js
+++ b/profile/public/script.js
@@ -25,7 +25,7 @@ function appendQuestions(question) {
field.id = "id_" + question.id;
field.name = question.id;
if (question.answer !== undefined) init = false;
- field.value = question.answer;
+ field.value = question.answer || "";
field.placeholder = question.question;
field.type = question.type;
if (question.type === "file") field.accept = "image/*";