Skip to content
7 changes: 4 additions & 3 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.get('data.event.tickets').toArray(), ticket => ticket.get('type') === 'paid' || ticket.get('type') === 'donation').length > 0;
}),



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