@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.
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2696,11 +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
2704
|
var _res$data;
|
|
2705
|
+
console.log('allowPersonalCardAdd2', res === null || res === void 0 ? void 0 : res.data);
|
|
2704
2706
|
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);
|
|
2705
2707
|
}
|
|
2706
2708
|
})["catch"](function () {
|
|
@@ -2935,7 +2937,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2935
2937
|
return renderCard(card);
|
|
2936
2938
|
}) : null, corporateCards.length !== 0 ? corporateCards === null || corporateCards === void 0 ? void 0 : corporateCards.map(function (card) {
|
|
2937
2939
|
return renderCard(card);
|
|
2938
|
-
}) : null), (!cards || cardsCount < 10) && allowPersonalCardAdd && /*#__PURE__*/React__default.createElement("button", {
|
|
2940
|
+
}) : null), console.log('allowPersonalCardAdd3', !cards, cardsCount, allowPersonalCardAdd), (!cards || cardsCount < 10) && allowPersonalCardAdd && /*#__PURE__*/React__default.createElement("button", {
|
|
2939
2941
|
className: classes.addCardButton,
|
|
2940
2942
|
onClick: function onClick() {
|
|
2941
2943
|
sendLog({
|