Skip to content

Commit

Permalink
adjusts use token explorer to be less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
salieflewis committed Jun 23, 2023
1 parent 324729d commit 0ebdd53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-deers-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@public-assembly/builder-utils': patch
---

Ensures that isFirstToken and isLastToken are defined regardless if values are numbers or strings.
4 changes: 2 additions & 2 deletions packages/builder-utils/src/hooks/useTokenExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export function useTokenExplorer({ tokenId }: { tokenId: number }) {
}
}, [tokenId, navigatedTokenId])

const isFirstToken = navigatedTokenId === 0
const isLastToken = navigatedTokenId === auctionState.tokenId
const isFirstToken = navigatedTokenId == 0
const isLastToken = navigatedTokenId == auctionState.tokenId

return {
tokenId,
Expand Down

0 comments on commit 0ebdd53

Please sign in to comment.