diff --git a/js/packages/web/src/components/AuctionCard/index.tsx b/js/packages/web/src/components/AuctionCard/index.tsx index d8f4520..ea97ff9 100644 --- a/js/packages/web/src/components/AuctionCard/index.tsx +++ b/js/packages/web/src/components/AuctionCard/index.tsx @@ -255,17 +255,17 @@ export const AuctionCard = ({ const isAuctionNotStarted = auctionView.auction.info.state === AuctionState.Created; - const isOpenEditionInstantSale = + const isOpenEditionSale = auctionView.auction.info.bidState.type === BidStateType.OpenEdition; - const isInstantSaleHasNoItems = + const doesInstantSaleHasNoItems = Number(auctionView.myBidderPot?.info.emptied) !== 0 && auctionView.auction.info.bidState.max.toNumber() === bids.length; const shouldHideInstantSale = + !isOpenEditionSale && auctionView.isInstantSale && isAuctionManagerAuthorityNotWalletOwner && - !isOpenEditionInstantSale && - isInstantSaleHasNoItems; + doesInstantSaleHasNoItems; const shouldHide = shouldHideInstantSale ||