tripstorekrabi-shared 1.13.62 → 1.13.63

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 +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.13.62",
3
+ "version": "1.13.63",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/price.js CHANGED
@@ -354,7 +354,7 @@ function calculateStartEndPointPrice(people, startEndPoint, options = { mode: SE
354
354
  }
355
355
 
356
356
  export function findStartingPoint(product, startingPointId, useDefault = true) {
357
- return product.startingPoints.find((item) => item.id === startingPointId) ?? (useDefault ? product.startingPoints[0] : null);
357
+ return [...product.startingPoints, CUSTOM_MEETING_POINT].find((item) => item.id === startingPointId) ?? (useDefault ? product.startingPoints[0] : null);
358
358
  }
359
359
 
360
360
  export function findEndPoint(product, endPointId, useDefault = true) {