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:
parent
a9e1776499
commit
3b023054dd
@ -59,13 +59,7 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement {
|
|||||||
const [userPoolShares, setUserPoolShares] = useState('0')
|
const [userPoolShares, setUserPoolShares] = useState('0')
|
||||||
|
|
||||||
const fetchAllData = useCallback(async () => {
|
const fetchAllData = useCallback(async () => {
|
||||||
if (
|
if (!asset?.chainId || !asset?.accessDetails?.addressOrId || !owner) return
|
||||||
!accountId ||
|
|
||||||
!asset?.chainId ||
|
|
||||||
!asset?.accessDetails?.addressOrId ||
|
|
||||||
!owner
|
|
||||||
)
|
|
||||||
return
|
|
||||||
|
|
||||||
const response = await getPoolData(
|
const response = await getPoolData(
|
||||||
asset.chainId,
|
asset.chainId,
|
||||||
|
Loading…
Reference in New Issue
Block a user