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