@open-tender/utils 0.4.43 → 0.4.44
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.
|
@@ -158,10 +158,10 @@ const getRevenueCenterStatus = (hours, firstTimes, serviceType, timezone) => {
|
|
|
158
158
|
const firstTimeDate = (0, date_fns_1.parseISO)(serviceFirstTimes.date);
|
|
159
159
|
const canOrderToday = (0, date_fns_1.isToday)(firstTimeDate);
|
|
160
160
|
if (canOrderToday)
|
|
161
|
-
return 'Currently
|
|
161
|
+
return 'Currently closed, order for later today';
|
|
162
162
|
const nextAvailableDate = (0, date_fns_1.isTomorrow)(firstTimeDate)
|
|
163
163
|
? 'tomorrow'
|
|
164
164
|
: (0, date_fns_1.format)(firstTimeDate, 'EEEE');
|
|
165
|
-
return `Closed for
|
|
165
|
+
return `Closed for today, order for ${nextAvailableDate}`;
|
|
166
166
|
};
|
|
167
167
|
exports.getRevenueCenterStatus = getRevenueCenterStatus;
|
|
@@ -147,9 +147,9 @@ export const getRevenueCenterStatus = (hours, firstTimes, serviceType, timezone)
|
|
|
147
147
|
const firstTimeDate = parseISO(serviceFirstTimes.date);
|
|
148
148
|
const canOrderToday = isToday(firstTimeDate);
|
|
149
149
|
if (canOrderToday)
|
|
150
|
-
return 'Currently
|
|
150
|
+
return 'Currently closed, order for later today';
|
|
151
151
|
const nextAvailableDate = isTomorrow(firstTimeDate)
|
|
152
152
|
? 'tomorrow'
|
|
153
153
|
: format(firstTimeDate, 'EEEE');
|
|
154
|
-
return `Closed for
|
|
154
|
+
return `Closed for today, order for ${nextAvailableDate}`;
|
|
155
155
|
};
|
package/package.json
CHANGED