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

restore fetchAllData for any user (#1318)

This commit is contained in:
EnzoVezzaro 2022-04-05 13:09:28 -04:00 committed by GitHub
parent a9e1776499
commit 3b023054dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,