@itilite/iui-user-management 1.4.961 → 1.4.962
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2824,7 +2824,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2824
2824
|
var timeDiff = cardExpDate.getTime() - currentDate.getTime();
|
|
2825
2825
|
var daysToExpire = Math.ceil(timeDiff / (1000 * 3600 * 24));
|
|
2826
2826
|
var expiresSoon = daysToExpire <= 30 && !isExpired;
|
|
2827
|
-
var showMenuButton =
|
|
2827
|
+
var showMenuButton = cardsCount === 1 || cardsCount > 1 && !isDefaultCard;
|
|
2828
2828
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2829
2829
|
key: card.id,
|
|
2830
2830
|
className: clsx(classes.card, classes[cardClass], (_clsx = {}, _clsx[classes.disabledCard] = isDisabled, _clsx))
|