From 29e6636d71351201b82c81d6e73a0987d0861e4d Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Fri, 13 May 2022 07:48:24 -0400 Subject: [PATCH] handle poolData shares when empty (#1424) * handle poolData shares when it's empty * rm log --- src/@context/Pool/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/@context/Pool/index.tsx b/src/@context/Pool/index.tsx index 6620a2c2b..cc78e11f1 100644 --- a/src/@context/Pool/index.tsx +++ b/src/@context/Pool/index.tsx @@ -138,6 +138,7 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement { if ( !poolData || !poolInfo?.totalPoolTokens || + !poolData.shares[0]?.shares || poolData.shares[0]?.shares === '0' ) return