@pisell/pisellos 0.0.420 → 0.0.421
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.
|
@@ -4299,7 +4299,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4299
4299
|
|
|
4300
4300
|
if (status === 'unavailable') {
|
|
4301
4301
|
// dateStatus = 'unavailable'
|
|
4302
|
-
if (
|
|
4302
|
+
if (availableCount === 0 && summaryCount > 0) dateStatus = 'sold_out';else dateStatus = 'unavailable';
|
|
4303
4303
|
} else {
|
|
4304
4304
|
usageRatio = availableCount / summaryCount;
|
|
4305
4305
|
if (usageRatio > 0.5) dateStatus = 'lots_of_space';else dateStatus = 'filling_up_fast';
|
|
@@ -2999,7 +2999,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
2999
2999
|
}
|
|
3000
3000
|
let dateStatus;
|
|
3001
3001
|
if (status === "unavailable") {
|
|
3002
|
-
if (
|
|
3002
|
+
if (availableCount === 0 && summaryCount > 0)
|
|
3003
3003
|
dateStatus = "sold_out";
|
|
3004
3004
|
else
|
|
3005
3005
|
dateStatus = "unavailable";
|