Skip to content
5 changes: 3 additions & 2 deletions app/components/forms/wizard/basic-details-step.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ 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 filter(this.data.event.tickets.toArray(), ticket => ticket.type === 'paid' || ticket.type === 'donation').length > 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use native filter function.

this.data.event.tickets.toArray().filter(

}),


hasCodeOfConduct: computed('data.event.codeOfConduct', function() {
return !!this.get('data.event.codeOfConduct');
}),
Expand Down