tripstorekrabi-shared 1.21.8 → 1.21.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ota.js +2 -2
- package/package.json +1 -1
package/ota.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function isCommissionable(operatorId, booking, otas
|
|
1
|
+
export function isCommissionable(operatorId, booking, otas) {
|
|
2
2
|
let ota = otas.find((item) => booking.referenceNumber.startsWith(item.bookingPrefix));
|
|
3
3
|
|
|
4
4
|
// stop checking if it's not an OTA booking
|
|
@@ -20,5 +20,5 @@ export function isCommissionable(operatorId, booking, otas, defaultValue = true)
|
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
return account?.commissionable ??
|
|
23
|
+
return account?.commissionable ?? true;
|
|
24
24
|
}
|