fix: don't show the add liquidity warning when no position currently … (#6238)
fix: don't show the add liquidity warning when no position currently exists
This commit is contained in:
parent
18ec675c52
commit
d179fc6b84
@ -555,7 +555,7 @@ export default function AddLiquidity() {
|
||||
const owner = useSingleCallResult(tokenId ? positionManager : null, 'ownerOf', [tokenId]).result?.[0]
|
||||
const ownsNFT =
|
||||
addressesAreEquivalent(owner, account) || addressesAreEquivalent(existingPositionDetails?.operator, account)
|
||||
const showOwnershipWarning = Boolean(account && !ownsNFT)
|
||||
const showOwnershipWarning = Boolean(hasExistingPosition && account && !ownsNFT)
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user