From a2dd7300fcedb61f9706c6ca1131351ef8a12c2d Mon Sep 17 00:00:00 2001 From: kushthedude Date: Mon, 15 Jul 2019 04:26:15 +0530 Subject: [PATCH 1/2] Payment infor donations --- app/components/forms/wizard/basic-details-step.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/forms/wizard/basic-details-step.js b/app/components/forms/wizard/basic-details-step.js index 638bbbe3570..737819abee9 100644 --- a/app/components/forms/wizard/basic-details-step.js +++ b/app/components/forms/wizard/basic-details-step.js @@ -102,8 +102,9 @@ export default Component.extend(FormMixin, EventWizardMixin, { return this.data.event.state !== 'published'; }), - hasPaidTickets: computed('data.event.tickets.[]', function() { - return filter(this.get('data.event.tickets').toArray(), ticket => ticket.get('type') === 'paid').length > 0; + hasPaidTickets: computed('data.event.tickets.@each.type', function() { + + return this.data.event.tickets.toArray().filter(ticket => ticket.type === 'paid' || ticket.type === 'donation').length > 0; }), hasCodeOfConduct: computed('data.event.codeOfConduct', function() { From f910719a9aebbaa12a0459a4154c0932bdfbcc47 Mon Sep 17 00:00:00 2001 From: kushthedude Date: Mon, 15 Jul 2019 10:40:10 +0530 Subject: [PATCH 2/2] Payment infor donations --- app/components/forms/wizard/basic-details-step.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/components/forms/wizard/basic-details-step.js b/app/components/forms/wizard/basic-details-step.js index 737819abee9..8dc6b27d779 100644 --- a/app/components/forms/wizard/basic-details-step.js +++ b/app/components/forms/wizard/basic-details-step.js @@ -103,7 +103,6 @@ export default Component.extend(FormMixin, EventWizardMixin, { }), hasPaidTickets: computed('data.event.tickets.@each.type', function() { - return this.data.event.tickets.toArray().filter(ticket => ticket.type === 'paid' || ticket.type === 'donation').length > 0; }),