From 3b023054dd5bd672c2b61e64eb28e661535e6529 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Tue, 5 Apr 2022 13:09:28 -0400 Subject: [PATCH] restore fetchAllData for any user (#1318) --- src/@context/Pool/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/@context/Pool/index.tsx b/src/@context/Pool/index.tsx index fb171e6d1..e0fa7941a 100644 --- a/src/@context/Pool/index.tsx +++ b/src/@context/Pool/index.tsx @@ -59,13 +59,7 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement { const [userPoolShares, setUserPoolShares] = useState('0') const fetchAllData = useCallback(async () => { - if ( - !accountId || - !asset?.chainId || - !asset?.accessDetails?.addressOrId || - !owner - ) - return + if (!asset?.chainId || !asset?.accessDetails?.addressOrId || !owner) return const response = await getPoolData( asset.chainId,