From 574e4a02f15d64ef82253f5ba70bda72d7793932 Mon Sep 17 00:00:00 2001 From: Norbi <37236152+KatunaNorbert@users.noreply.github.com> Date: Tue, 11 May 2021 11:33:05 +0300 Subject: [PATCH] used price from useAsset instead of ddo (#590) Co-authored-by: Norbi --- src/components/organisms/AssetActions/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/organisms/AssetActions/index.tsx b/src/components/organisms/AssetActions/index.tsx index 41ac03ed5..967760a57 100644 --- a/src/components/organisms/AssetActions/index.tsx +++ b/src/components/organisms/AssetActions/index.tsx @@ -18,7 +18,6 @@ export default function AssetActions(): ReactElement { const [isBalanceSufficient, setIsBalanceSufficient] = useState() const [dtBalance, setDtBalance] = useState() - const isCompute = Boolean(ddo?.findServiceByType('compute')) // Get and set user DT balance @@ -74,10 +73,7 @@ export default function AssetActions(): ReactElement { } ] - // Check from metadata, cause that is available earlier - const hasPool = ddo?.price?.type === 'pool' - - hasPool && + price?.type === 'pool' && tabs.push( { title: 'Pool',