Refactor BookingProduct

This commit is contained in:
Pedro Silva 2023-08-10 08:22:36 +01:00
parent 7baee26194
commit cb36c31a78
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -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
}
}
}