mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-28 07:20:49 -04:00
(lint) fix
This commit is contained in:
parent
90bcd26337
commit
17908029ab
@ -325,9 +325,9 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
async q(newValue, oldValue) {
|
async q(newValue, oldValue) {
|
||||||
if (this.question && this.question.conditionalOn) {
|
if (this.question && this.question.conditionalOn) {
|
||||||
const conditionAnswer = this.answers[this.question.conditionalOn]
|
const conditionAnswer = this.answers[this.question.conditionalOn];
|
||||||
const conditionFullfilled = Array.isArray(conditionAnswer)
|
const conditionFullfilled = Array.isArray(conditionAnswer)
|
||||||
? conditionAnswer.filter(a => this.question.conditionalValue.includes(a)).length > 0
|
? conditionAnswer.filter((a) => this.question.conditionalValue.includes(a)).length > 0
|
||||||
: conditionAnswer === this.question.conditionalValue;
|
: conditionAnswer === this.question.conditionalValue;
|
||||||
|
|
||||||
if (!conditionFullfilled) {
|
if (!conditionFullfilled) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user