From d179fc6b847b619cd8e8ec63f3af9a7d7f802e12 Mon Sep 17 00:00:00 2001 From: Jordan Frankfurt Date: Thu, 23 Mar 2023 17:18:35 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20don't=20show=20the=20add=20liquidity=20w?= =?UTF-8?q?arning=20when=20no=20position=20currently=20=E2=80=A6=20(#6238)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: don't show the add liquidity warning when no position currently exists --- src/pages/AddLiquidity/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/AddLiquidity/index.tsx b/src/pages/AddLiquidity/index.tsx index 8017fe3635..e24de08a59 100644 --- a/src/pages/AddLiquidity/index.tsx +++ b/src/pages/AddLiquidity/index.tsx @@ -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 ( <>