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

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.
@@ -2693,11 +2693,13 @@ var CardsManagement = function CardsManagement(_ref) {
2693
2693
  var _useState3 = useState(false),
2694
2694
  allowPersonalCardAdd = _useState3[0],
2695
2695
  setAllowPersonalCardAdd = _useState3[1];
2696
+ console.log('allowPersonalCardAdd1', allowPersonalCardAdd);
2696
2697
  useEffect(function () {
2697
2698
  var isActive = true;
2698
2699
  paymentApi$1.get(userAddEditUrl.personalCardEligibility()).then(function (res) {
2699
2700
  if (isActive) {
2700
2701
  var _res$data;
2702
+ console.log('allowPersonalCardAdd2', res === null || res === void 0 ? void 0 : res.data);
2701
2703
  setAllowPersonalCardAdd((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.allow_personal_card_add) === true);
2702
2704
  }
2703
2705
  })["catch"](function () {
@@ -2932,7 +2934,7 @@ var CardsManagement = function CardsManagement(_ref) {
2932
2934
  return renderCard(card);
2933
2935
  }) : null, corporateCards.length !== 0 ? corporateCards === null || corporateCards === void 0 ? void 0 : corporateCards.map(function (card) {
2934
2936
  return renderCard(card);
2935
- }) : null), (!cards || cardsCount < 10) && allowPersonalCardAdd && /*#__PURE__*/React.createElement("button", {
2937
+ }) : null), console.log('allowPersonalCardAdd3', !cards, cardsCount, allowPersonalCardAdd), (!cards || cardsCount < 10) && allowPersonalCardAdd && /*#__PURE__*/React.createElement("button", {
2936
2938
  className: classes.addCardButton,
2937
2939
  onClick: function onClick() {
2938
2940
  sendLog({