aboutsummaryrefslogtreecommitdiff
path: root/profile/public/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'profile/public/script.js')
-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/*";