Skip to content

Commit b5863f5

Browse files
fix: Use .get on buyer in order form (#5874)
1 parent 5c296b5 commit b5863f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/forms/orders/order-form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ export default Component.extend(FormMixin, {
2323
buyer : readOnly('data.user'),
2424
buyerHasFirstName : readOnly('data.user.firstName'),
2525
buyerHasLastName : readOnly('data.user.lastName'),
26-
holders : computed('data.attendees', function() {
26+
holders : computed('data.attendees', 'buyer', function() {
2727
this.data.attendees.forEach((attendee, index) => {
2828
if (index === 0) {
2929
attendee.set('firstname', this.buyerFirstName);
3030
attendee.set('lastname', this.buyerLastName);
31-
attendee.set('email', this.buyer.content.email);
31+
attendee.set('email', this.buyer.get('email'));
3232
} else {
3333
attendee.set('firstname', '');
3434
attendee.set('lastname', '');

0 commit comments

Comments
 (0)