+
+
+
-
-
diff --git a/client/src/pages/survey.vue b/client/src/pages/survey.vue
index 36007749..a02d8590 100644
--- a/client/src/pages/survey.vue
+++ b/client/src/pages/survey.vue
@@ -59,10 +59,22 @@
if (!answer.answer) {
return previous
}
+ let answerText;
+ if (typeof answer.answer === 'object') {
+ // this means the answer comes from a matrix, where the keys are the labels and the values are the respective answers
+ let answerObject = answer.answer;
+ let keysAndValues = [];
+ for (let prop of Object.keys(answerObject)) {
+ keysAndValues.push(`${prop}: ${answerObject[prop]}`);
+ }
+ answerText = keysAndValues.join(', ');
+ } else {
+ answerText = answer.answer;
+ }
return `
${previous}
${answer.title}
-
${answer.answer}
+
${answerText}
`
}, '')
}
diff --git a/client/src/pages/topic.vue b/client/src/pages/topic.vue
index 091686a5..0aeace11 100644
--- a/client/src/pages/topic.vue
+++ b/client/src/pages/topic.vue
@@ -4,9 +4,16 @@
{{topic.teaser}}
-
-
-
Video schauen
+
@@ -16,15 +23,20 @@