lazywait-calcs 1.1.0 → 1.1.1
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/lib/cjs/Calcs.js +1 -1
- package/lib/esm/Calcs.js +1 -1
- package/lib/esm/index.mjs +0 -0
- package/package.json +1 -1
package/lib/cjs/Calcs.js
CHANGED
|
@@ -208,7 +208,7 @@ function Deliveries(order_deliveries) {
|
|
|
208
208
|
let sum = 0;
|
|
209
209
|
if (order_deliveries) {
|
|
210
210
|
(order_deliveries || []).forEach((d) => {
|
|
211
|
-
if (d.delivery_type === 'RADIUS') {
|
|
211
|
+
if ((d === null || d === void 0 ? void 0 : d.delivery_type) === 'RADIUS') {
|
|
212
212
|
sum += (d.delivery_fee || 0) * (d.delivery_radius || 1);
|
|
213
213
|
}
|
|
214
214
|
else {
|
package/lib/esm/Calcs.js
CHANGED
|
@@ -183,7 +183,7 @@ export function Deliveries(order_deliveries) {
|
|
|
183
183
|
let sum = 0;
|
|
184
184
|
if (order_deliveries) {
|
|
185
185
|
(order_deliveries || []).forEach((d) => {
|
|
186
|
-
if (d
|
|
186
|
+
if (d?.delivery_type === 'RADIUS') {
|
|
187
187
|
sum += (d.delivery_fee || 0) * (d.delivery_radius || 1);
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
File without changes
|
package/package.json
CHANGED