From 225612c0428fc2a748be7b94d93251146af782d9 Mon Sep 17 00:00:00 2001 From: nick134 <76399455+nick134-bit@users.noreply.github.com> Date: Wed, 10 Apr 2024 21:52:30 +0200 Subject: [PATCH] fix: exception on manage liquidity (#560) --- .../Pages/Trade/Pools/hooks/useQueryMatchingPoolForSwap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Pages/Trade/Pools/hooks/useQueryMatchingPoolForSwap.ts b/components/Pages/Trade/Pools/hooks/useQueryMatchingPoolForSwap.ts index 57dc5876..ccd134bf 100644 --- a/components/Pages/Trade/Pools/hooks/useQueryMatchingPoolForSwap.ts +++ b/components/Pages/Trade/Pools/hooks/useQueryMatchingPoolForSwap.ts @@ -39,10 +39,10 @@ export const findPoolForSwap = ({ tokenB, }) => { const matchingAB = - poolTokenA.symbol === tokenA.symbol && poolTokenB.symbol === tokenB.symbol + poolTokenA.symbol === tokenA?.symbol && poolTokenB.symbol === tokenB?.symbol const matchingBA = - poolTokenA.symbol === tokenB.symbol && poolTokenB.symbol === tokenA.symbol + poolTokenA.symbol === tokenB?.symbol && poolTokenB.symbol === tokenA?.symbol return { matchingAB, matchingBA }