File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/components/forms/orders Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ export default Component.extend(FormMixin, {
23
23
buyer : readOnly ( 'data.user' ) ,
24
24
buyerHasFirstName : readOnly ( 'data.user.firstName' ) ,
25
25
buyerHasLastName : readOnly ( 'data.user.lastName' ) ,
26
- holders : computed ( 'data.attendees' , function ( ) {
26
+ holders : computed ( 'data.attendees' , 'buyer' , function ( ) {
27
27
this . data . attendees . forEach ( ( attendee , index ) => {
28
28
if ( index === 0 ) {
29
29
attendee . set ( 'firstname' , this . buyerFirstName ) ;
30
30
attendee . set ( 'lastname' , this . buyerLastName ) ;
31
- attendee . set ( 'email' , this . buyer . content . email ) ;
31
+ attendee . set ( 'email' , this . buyer . get ( ' email' ) ) ;
32
32
} else {
33
33
attendee . set ( 'firstname' , '' ) ;
34
34
attendee . set ( 'lastname' , '' ) ;
You can’t perform that action at this time.
0 commit comments