mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Refactor BookingProduct
This commit is contained in:
parent
7baee26194
commit
cb36c31a78
1 changed files with 2 additions and 4 deletions
|
@ -3,16 +3,14 @@ import Product from "./Product";
|
|||
class BookingProduct extends Product {
|
||||
|
||||
constructor(id, quantity, booking, extra) {
|
||||
super(id, quantity, null);
|
||||
super(id, quantity, null, extra);
|
||||
this.booking = booking;
|
||||
this.extra = extra;
|
||||
}
|
||||
|
||||
data() {
|
||||
return {
|
||||
...super.data(),
|
||||
booking: this.booking,
|
||||
extra: this.extra
|
||||
booking: this.booking
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue