b2m-utils 0.0.213 → 0.0.215

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.
@@ -4,7 +4,7 @@ var getRatecardFromCte = function (cte) {
4
4
  if (((_a = cte.carrier) === null || _a === void 0 ? void 0 : _a.Ratecard) && ((_c = (_b = cte.carrier) === null || _b === void 0 ? void 0 : _b.Ratecard) === null || _c === void 0 ? void 0 : _c.length) > 0) {
5
5
  var ratecardFromThisYear = cte.carrier.Ratecard.find(function (ratecard) {
6
6
  var today = new Date();
7
- return (ratecard === null || ratecard === void 0 ? void 0 : ratecard.startsAt) && (ratecard === null || ratecard === void 0 ? void 0 : ratecard.endsAt) && today >= new Date(ratecard.startsAt) && today <= new Date(ratecard.endsAt);
7
+ return (ratecard === null || ratecard === void 0 ? void 0 : ratecard.startsAt) && (ratecard === null || ratecard === void 0 ? void 0 : ratecard.endsAt) && today >= new Date(ratecard.startsAt) && today <= new Date(ratecard.endsAt) && (ratecard === null || ratecard === void 0 ? void 0 : ratecard.modalId) === cte.modalId;
8
8
  });
9
9
  if (ratecardFromThisYear) {
10
10
  ratecard = ratecardFromThisYear;
Binary file