@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.modern.js
CHANGED
|
@@ -2821,7 +2821,7 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2821
2821
|
var timeDiff = cardExpDate.getTime() - currentDate.getTime();
|
|
2822
2822
|
var daysToExpire = Math.ceil(timeDiff / (1000 * 3600 * 24));
|
|
2823
2823
|
var expiresSoon = daysToExpire <= 30 && !isExpired;
|
|
2824
|
-
var showMenuButton =
|
|
2824
|
+
var showMenuButton = cardsCount === 1 || cardsCount > 1 && !isDefaultCard;
|
|
2825
2825
|
return /*#__PURE__*/React.createElement("div", {
|
|
2826
2826
|
key: card.id,
|
|
2827
2827
|
className: clsx(classes.card, classes[cardClass], (_clsx = {}, _clsx[classes.disabledCard] = isDisabled, _clsx))
|