From bd81f40333a72ba4ccd79cfe897f9890ba2d48d0 Mon Sep 17 00:00:00 2001 From: Michael Sebastiyan Date: Wed, 6 Oct 2021 18:16:40 +0300 Subject: [PATCH] refactor: small reword --- js/packages/web/src/components/AuctionCard/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ||