@itilite/iui-user-management 1.4.7732 → 1.4.7734

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.
@@ -2814,7 +2814,6 @@ var CardsManagement = function CardsManagement(_ref) {
2814
2814
  var companyCards = cards === null || cards === void 0 ? void 0 : cards.filter(function (card) {
2815
2815
  return (card === null || card === void 0 ? void 0 : card.category) === 'Company';
2816
2816
  });
2817
- console.log('test mudu');
2818
2817
  var cardsCount = (personalCards === null || personalCards === void 0 ? void 0 : personalCards.length) + (corporateCards === null || corporateCards === void 0 ? void 0 : corporateCards.length);
2819
2818
  var _url = env$3.getPaymentUrl() + ("/api/v1/auth/" + IUILocalStorageService$4.getAccessToken() + "/1/" + pg.entity_id + "/0/" + pg.vendor_id + "/1");
2820
2819
  return /*#__PURE__*/React.createElement("div", {
@@ -7349,7 +7348,8 @@ var UserAddEdit = function UserAddEdit(props) {
7349
7348
  useEffect(function () {
7350
7349
  if (isRendered === true) {
7351
7350
  renderFields === null || renderFields === void 0 ? void 0 : renderFields.products.forEach(function (prod) {
7352
- if ((prod === null || prod === void 0 ? void 0 : prod.name) === 'card') {
7351
+ console.log(prod, isProfile, editUserId, id, 'card check');
7352
+ if ((prod === null || prod === void 0 ? void 0 : prod.name) === 'card' && (isProfile || editUserId)) {
7353
7353
  fetchEditUserCardsDetails(isProfile ? id : editUserId);
7354
7354
  }
7355
7355
  });