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, {
29
29
buyerHasFirstName : readOnly ( 'data.user.firstName' ) ,
30
30
buyerHasLastName : readOnly ( 'data.user.lastName' ) ,
31
31
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
- } ) ;
43
32
return this . data . attendees ;
44
33
} ) ,
45
34
isPaidOrder : computed ( 'data' , function ( ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default ModelBase.extend({
7
7
/**
8
8
* Attributes
9
9
*/
10
- sameAsBuyer : attr ( 'boolean' , { defaultValue : true } ) ,
10
+ sameAsBuyer : attr ( 'boolean' , { defaultValue : false } ) ,
11
11
city : attr ( 'string' ) ,
12
12
firstname : attr ( 'string' ) ,
13
13
lastname : attr ( 'string' ) ,
You can’t perform that action at this time.
0 commit comments