1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

handle poolData shares when empty (#1424)

* handle poolData shares when it's empty

* rm log
This commit is contained in:
EnzoVezzaro 2022-05-13 07:48:24 -04:00 committed by GitHub
parent 5f3ee32ca2
commit 29e6636d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,7 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement {
if (
!poolData ||
!poolInfo?.totalPoolTokens ||
!poolData.shares[0]?.shares ||
poolData.shares[0]?.shares === '0'
)
return