@timardex/cluemart-shared 1.7.85 → 1.7.86

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/dist/index.mjs CHANGED
@@ -1246,11 +1246,9 @@ function getEventScheduleStatusLabel(dateTime, onlyShowKnownStatuses) {
1246
1246
  return isKnownStatus ? status.replaceAll("_", " ").toLowerCase() : `Next event date: ${formatDate(dateTime.startDate, "date")}`;
1247
1247
  }
1248
1248
  function shouldShowEventActionsWithWeather(resourceType, dateTime, location) {
1249
- return resourceType === "event" /* EVENT */ && Boolean(location) && Boolean(dateTime?.dateStatus) && ![
1250
- "Ended" /* ENDED */,
1251
- "Canceled" /* CANCELED */,
1252
- "Started" /* STARTED */
1253
- ].includes(dateTime.dateStatus);
1249
+ return resourceType === "event" /* EVENT */ && Boolean(location) && Boolean(dateTime?.dateStatus) && !["Ended" /* ENDED */, "Canceled" /* CANCELED */].includes(
1250
+ dateTime.dateStatus
1251
+ );
1254
1252
  }
1255
1253
 
1256
1254
  // src/formFields/categories/clothingAndFashion.ts