tripstorekrabi-shared 1.13.29 → 1.13.30
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/package.json +1 -1
- package/utils.js +5 -2
package/package.json
CHANGED
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 +=
|
|
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;
|