tripstorekrabi-shared 1.7.9 → 1.8.0

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/utils.js +7 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.7.9",
3
+ "version": "1.8.0",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/utils.js CHANGED
@@ -368,10 +368,14 @@ export function getItemSummary(item, product) {
368
368
  if (item.startingPointId) {
369
369
  let startingPointDescription = findStartingPoint(product, item.startingPointId).value;
370
370
  if (isHotelPickup(startingPointDescription)) {
371
- summary += "Hotel pickup from " + item.pickupHotel;
371
+ if (item.noHotelYet === true) {
372
+ summary += "Hotel pickup (hotel not known yet)";
373
+ } else {
374
+ summary += "Hotel pickup from " + item.pickupHotel;
372
375
 
373
- if (item.roomNumber) {
374
- summary += ` (${item.roomNumber})`;
376
+ if (item.roomNumber) {
377
+ summary += ` (${item.roomNumber})`;
378
+ }
375
379
  }
376
380
  } else {
377
381
  summary += startingPointDescription;