From a030cdecdba59b738325cc94257df01368e59c8b Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Thu, 23 Jun 2022 07:16:20 +0300 Subject: [PATCH] add accountId as a dependency in effect --- src/components/Asset/AssetActions/Compute/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Asset/AssetActions/Compute/index.tsx b/src/components/Asset/AssetActions/Compute/index.tsx index 8fe0ad791..0a2b22b69 100644 --- a/src/components/Asset/AssetActions/Compute/index.tsx +++ b/src/components/Asset/AssetActions/Compute/index.tsx @@ -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