b2m-utils 0.0.240 → 0.0.242

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/build/index.js CHANGED
@@ -437,8 +437,8 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
437
437
  if (allFees && Array.isArray(allFees) && (allFees === null || allFees === void 0 ? void 0 : allFees.length) > 0) {
438
438
  var totalFromAllFees = filterSiblingFees(allFees).filter(function (i) { var _a; return ((_a = i.fee) === null || _a === void 0 ? void 0 : _a.id) !== fee_1.id; }).map(function (it) {
439
439
  var result = calculateFee(it, cte, allFees, debug, allFeesForCalc);
440
- if (result === null || result === void 0 ? void 0 : result.totalToCalc) {
441
- return result.totalToCalc;
440
+ if (result === null || result === void 0 ? void 0 : result.totalFee) {
441
+ return result.totalFee;
442
442
  }
443
443
  return 0;
444
444
  }, 0);
package/build/index.js.gz CHANGED
Binary file