@aptos-scp/scp-component-store-selling-features-domain-model 2.45.0 → 2.45.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.
@@ -2,13 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const RewardCardTenderLine_1 = require("./RewardCardTenderLine");
4
4
  function isRewardCardTenderLine(transactionLine) {
5
- return (transactionLine instanceof RewardCardTenderLine_1.RewardCardTenderLine ||
6
- transactionLine.lineType === RewardCardTenderLine_1.REWARD_CARD_TENDER_LINE_TYPE);
5
+ return transactionLine && transactionLine.lineType === RewardCardTenderLine_1.REWARD_CARD_TENDER_LINE_TYPE;
7
6
  }
8
7
  exports.isRewardCardTenderLine = isRewardCardTenderLine;
9
8
  function isRewardCardTenderRefundLine(transactionLine) {
10
- return (transactionLine instanceof RewardCardTenderLine_1.RewardCardTenderLine ||
11
- transactionLine.lineType === RewardCardTenderLine_1.REWARD_CARD_TENDER_REFUND_LINE_TYPE);
9
+ return transactionLine && transactionLine.lineType === RewardCardTenderLine_1.REWARD_CARD_TENDER_REFUND_LINE_TYPE;
12
10
  }
13
11
  exports.isRewardCardTenderRefundLine = isRewardCardTenderRefundLine;
14
12
  //# sourceMappingURL=lineTypes.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-scp/scp-component-store-selling-features-domain-model",
3
- "version": "2.45.0",
3
+ "version": "2.45.1",
4
4
  "description": "This component library provides the common components to handle the coordination of processing the business events from the UI.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE.md",