tripstorekrabi-shared 1.13.29 → 1.13.31

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 +2 -2
  2. package/utils.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.13.29",
3
+ "version": "1.13.31",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "./product": "./product.js"
16
16
  },
17
17
  "dependencies": {
18
- "dayjs": "^1.11.8"
18
+ "dayjs": "^1.11.9"
19
19
  },
20
20
  "scripts": {
21
21
  "deploy": "npm publish"
package/utils.js CHANGED
@@ -313,8 +313,11 @@ export function getBookingSummary(booking, options = {}) {
313
313
 
314
314
  let hasHotelPickup = isHotelPickup(booking.startingPointDescription);
315
315
  if (hasHotelPickup && booking.roomNumber?.length > 0) {
316
- if (booking.roomNumber)
317
- summary += " (room " + booking.roomNumber + ")";
316
+ if (ROOM_NUMBER_LIST.includes(booking.roomNumber)) {
317
+ summary += ` (${booking.roomNumber})`;
318
+ } else {
319
+ summary += ` (room ${booking.roomNumber})`;
320
+ }
318
321
  }
319
322
 
320
323
  summary += ", " + booking.schedule;