File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,6 @@ export default Component.extend(FormMixin, {
2929 buyerHasFirstName : readOnly ( 'data.user.firstName' ) ,
3030 buyerHasLastName : readOnly ( 'data.user.lastName' ) ,
3131 holders : computed ( 'data.attendees' , 'buyer' , function ( ) {
32- this . data . attendees . forEach ( attendee => {
33- if ( this . buyerFirstName && this . buyerLastName ) {
34- attendee . set ( 'firstname' , this . buyerFirstName ) ;
35- attendee . set ( 'lastname' , this . buyerLastName ) ;
36- attendee . set ( 'email' , this . buyer . get ( 'email' ) ) ;
37- } else {
38- attendee . set ( 'firstname' , '' ) ;
39- attendee . set ( 'lastname' , '' ) ;
40- attendee . set ( 'email' , '' ) ;
41- }
42- } ) ;
4332 return this . data . attendees ;
4433 } ) ,
4534 isPaidOrder : computed ( 'data' , function ( ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default ModelBase.extend({
77 /**
88 * Attributes
99 */
10- sameAsBuyer : attr ( 'boolean' , { defaultValue : true } ) ,
10+ sameAsBuyer : attr ( 'boolean' , { defaultValue : false } ) ,
1111 city : attr ( 'string' ) ,
1212 firstname : attr ( 'string' ) ,
1313 lastname : attr ( 'string' ) ,
You can’t perform that action at this time.
0 commit comments