Skip to content

Commit a851222

Browse files
authored
fix: Showing Payment Options for Donations (#3281)
* Payment infor donations * Payment infor donations
1 parent 590c525 commit a851222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/forms/wizard/basic-details-step.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ export default Component.extend(FormMixin, EventWizardMixin, {
102102
return this.data.event.state !== 'published';
103103
}),
104104

105-
hasPaidTickets: computed('data.event.tickets.[]', function() {
106-
return filter(this.get('data.event.tickets').toArray(), ticket => ticket.get('type') === 'paid').length > 0;
105+
hasPaidTickets: computed('data.event.tickets.@each.type', function() {
106+
return this.data.event.tickets.toArray().filter(ticket => ticket.type === 'paid' || ticket.type === 'donation').length > 0;
107107
}),
108108

109109
hasCodeOfConduct: computed('data.event.codeOfConduct', function() {

0 commit comments

Comments
 (0)