@itilite/iui-user-management 1.5.14-beta.2 → 1.5.14-beta.3

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.
@@ -2673,11 +2673,9 @@ var IUILocalStorageService$3 = services.IUILocalStorageService;
2673
2673
  var env$3 = configs.env,
2674
2674
  paymentApi$1 = configs.paymentApi;
2675
2675
  var CardsManagement = function CardsManagement(_ref) {
2676
- var _selectedCard$metadat, _pg$gateway;
2676
+ var _selectedCard$metadat;
2677
2677
  var _ref$paymentDetails = _ref.paymentDetails,
2678
2678
  paymentDetails = _ref$paymentDetails === void 0 ? {} : _ref$paymentDetails,
2679
- _ref$paymentMethod = _ref.paymentMethod,
2680
- paymentMethod = _ref$paymentMethod === void 0 ? null : _ref$paymentMethod,
2681
2679
  _ref$sendLog = _ref.sendLog,
2682
2680
  sendLog = _ref$sendLog === void 0 ? function () {} : _ref$sendLog;
2683
2681
  var dispatch = useDispatch();
@@ -2926,7 +2924,7 @@ var CardsManagement = function CardsManagement(_ref) {
2926
2924
  }, /*#__PURE__*/React.createElement(IUIGrid, {
2927
2925
  container: true,
2928
2926
  className: styles$1.formFieldsWrapper
2929
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, paymentMethod === 2 && /*#__PURE__*/React.createElement("div", {
2927
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !allowPersonalCardAdd && /*#__PURE__*/React.createElement("div", {
2930
2928
  className: classes.disabledNotice
2931
2929
  }, "Company has disabled usage of your personal cards, please reach out to your admin"), /*#__PURE__*/React.createElement("div", {
2932
2930
  className: classes.cardsGrid
@@ -2934,7 +2932,7 @@ var CardsManagement = function CardsManagement(_ref) {
2934
2932
  return renderCard(card);
2935
2933
  }) : null, corporateCards.length !== 0 ? corporateCards === null || corporateCards === void 0 ? void 0 : corporateCards.map(function (card) {
2936
2934
  return renderCard(card);
2937
- }) : null), (!cards || cardsCount < 10) && (pg === null || pg === void 0 ? void 0 : (_pg$gateway = pg.gateway) === null || _pg$gateway === void 0 ? void 0 : _pg$gateway.toLowerCase()) === 'stripe' && (pg === null || pg === void 0 ? void 0 : pg.save_card_enable) === 1 && paymentMethod === 1 && allowPersonalCardAdd && /*#__PURE__*/React.createElement("button", {
2935
+ }) : null), (!cards || cardsCount < 10) && allowPersonalCardAdd && /*#__PURE__*/React.createElement("button", {
2938
2936
  className: classes.addCardButton,
2939
2937
  onClick: function onClick() {
2940
2938
  sendLog({