From 322f7d285dcd0b2a45f6d0ea183fb677762b480e Mon Sep 17 00:00:00 2001 From: neokry Date: Thu, 8 Feb 2024 14:56:03 -0800 Subject: [PATCH] Fix tokenId 0 auction issue --- apps/web/src/modules/auction/components/Auction.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/modules/auction/components/Auction.tsx b/apps/web/src/modules/auction/components/Auction.tsx index 302b7f227..e8c3bd87d 100644 --- a/apps/web/src/modules/auction/components/Auction.tsx +++ b/apps/web/src/modules/auction/components/Auction.tsx @@ -57,7 +57,9 @@ export const Auction: React.FC = ({ unpackOptionalArray(auction, 6) const isTokenActiveAuction = - !settled && !!currentTokenId && currentTokenId.toString() == queriedTokenId + !settled && + currentTokenId !== undefined && + currentTokenId.toString() == queriedTokenId useAuctionEvents({ chainId: chain.id,