Skip to content

Commit

Permalink
Merge pull request #435 from ourzora/fix-zero-auction
Browse files Browse the repository at this point in the history
Fix tokenId 0 auction issue
  • Loading branch information
neokry authored Feb 8, 2024
2 parents 4251cc7 + 322f7d2 commit f73369c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/web/src/modules/auction/components/Auction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export const Auction: React.FC<AuctionControllerProps> = ({
unpackOptionalArray(auction, 6)

const isTokenActiveAuction =
!settled && !!currentTokenId && currentTokenId.toString() == queriedTokenId
!settled &&
currentTokenId !== undefined &&
currentTokenId.toString() == queriedTokenId

useAuctionEvents({
chainId: chain.id,
Expand Down

0 comments on commit f73369c

Please sign in to comment.