tripstorekrabi-shared 1.13.25 → 1.13.27

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/price.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.13.25",
3
+ "version": "1.13.27",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/price.js CHANGED
@@ -198,7 +198,7 @@ export function getExtraPaymentsPaidWithPartner(booking, product) {
198
198
  (product.addOns ?? []).forEach((addOn) => {
199
199
  addOnDefs[addOn.id] = addOn;
200
200
  });
201
- let addOns = Object.keys(booking.addOns).filter((id) => addOnDefs[id] != null).map(([id, addOn]) => {
201
+ let addOns = Object.entries(booking.addOns).filter(([id]) => addOnDefs[id] != null).map(([id, addOn]) => {
202
202
  let addOnDef = addOnDefs[id];
203
203
 
204
204
  return {
@@ -236,7 +236,7 @@ export function getExtraPaymentsPaidWithPartner(booking, product) {
236
236
  (item.price > 0 || item.operatoPrice > 0) &&
237
237
  Object.values(booking.extraPayments).find(
238
238
  (extraPayment) =>
239
- extraPayment.category === item.category && !item.disabled
239
+ extraPayment.category === item.category && !extraPayment.disabled
240
240
  ) == null
241
241
  );
242
242
  }