File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
apps/web/src/views/Liquidity Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ export const LiquidityView = () => {
210210
211211 const { tokenId : tokenIdFromUrl } = router . query
212212
213- const parsedTokenId = Number . isFinite ( Number ( tokenIdFromUrl ) ) ? BigInt ( tokenIdFromUrl as string ) : undefined
213+ const parsedTokenId = Number . isInteger ( Number ( tokenIdFromUrl ) ) ? BigInt ( tokenIdFromUrl as string ) : undefined
214214
215215 const { loading : positionDetailsLoading , position : positionDetails } = useV3PositionFromTokenId ( parsedTokenId )
216216
@@ -549,14 +549,10 @@ export const LiquidityView = () => {
549549
550550 if ( tokenIdFromUrl === 'pools' ) {
551551 router . replace ( '/liquidity/pools' )
552- } else {
552+ } else if ( ! parsedTokenId ) {
553553 router . replace ( '/liquidity/positions' )
554554 }
555555
556- if ( ! parsedTokenId ) {
557- return null
558- }
559-
560556 return (
561557 < Box mb = "40px" >
562558 { ! isLoading && < NextSeo title = { `${ currencyQuote ?. symbol } -${ currencyBase ?. symbol } V3 LP #${ tokenIdFromUrl } ` } /> }
You can’t perform that action at this time.
0 commit comments