Skip to content

Commit 3f18e9b

Browse files
committed
Fix support page example
1 parent 99fff4b commit 3f18e9b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/support-page/Example.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
tagline: 'Support page > Ticket status',
123123
title: 'Please enter your 6-digit code.',
124124
subtitle: 'You received this when you reported your problem.',
125-
type: QuestionType.Number,
125+
type: QuestionType.Text,
126126
multiple: false,
127127
required: true,
128128
mask: '#-#-#-#-#-#',
@@ -160,8 +160,6 @@
160160
const data = this.getData()
161161
162162
this.loading = true
163-
164-
/* eslint-disable-next-line no-unused-vars */
165163
166164
/*
167165
You can use Fetch API to send the data to your server, eg.:
@@ -189,7 +187,7 @@
189187
this.questions.forEach(question => {
190188
if (question.title) {
191189
let answer = question.answer
192-
if (typeof answer === 'object') {
190+
if (Array.isArray(answer)) {
193191
answer = answer.join(', ')
194192
}
195193

0 commit comments

Comments
 (0)