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

add accountId as a dependency in effect

This commit is contained in:
Bogdan Fazakas 2022-06-23 07:16:20 +03:00
parent 498f7604da
commit a030cdecdb

View File

@ -246,7 +246,7 @@ export default function Compute({
setIsConsumablePrice(asset?.accessDetails?.isPurchasable)
setValidOrderTx(asset?.accessDetails?.validOrderTx)
}, [asset?.accessDetails])
}, [asset?.accessDetails, accountId])
useEffect(() => {
if (!selectedAlgorithmAsset?.accessDetails || !accountId) return
@ -265,7 +265,7 @@ export default function Compute({
}
initSelectedAlgo()
}, [selectedAlgorithmAsset])
}, [selectedAlgorithmAsset, accountId])
useEffect(() => {
if (!asset) return