@itilite/iui-user-management 1.5.14-beta.3 → 1.5.14-beta.5
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.
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2693,12 +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
|
-
var _res$data;
|
|
2701
|
-
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);
|
|
2701
|
+
var _res$data, _res$data$data;
|
|
2702
|
+
setAllowPersonalCardAdd((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$data = _res$data.data) === null || _res$data$data === void 0 ? void 0 : _res$data$data.allow_personal_card_add) === true);
|
|
2702
2703
|
}
|
|
2703
2704
|
})["catch"](function () {
|
|
2704
2705
|
if (isActive) setAllowPersonalCardAdd(false);
|
|
@@ -2932,7 +2933,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2932
2933
|
return renderCard(card);
|
|
2933
2934
|
}) : null, corporateCards.length !== 0 ? corporateCards === null || corporateCards === void 0 ? void 0 : corporateCards.map(function (card) {
|
|
2934
2935
|
return renderCard(card);
|
|
2935
|
-
}) : null), (!cards || cardsCount < 10) && allowPersonalCardAdd && /*#__PURE__*/React.createElement("button", {
|
|
2936
|
+
}) : null), console.log('allowPersonalCardAdd3', !cards, cardsCount, allowPersonalCardAdd), (!cards || cardsCount < 10) && allowPersonalCardAdd && /*#__PURE__*/React.createElement("button", {
|
|
2936
2937
|
className: classes.addCardButton,
|
|
2937
2938
|
onClick: function onClick() {
|
|
2938
2939
|
sendLog({
|