From 031f6eb8f1d9710ef4c94927be6e3f81fb3257fb Mon Sep 17 00:00:00 2001 From: Luca Milanese Date: Thu, 12 Oct 2023 14:37:15 +0200 Subject: [PATCH] fix: free assets not displayed in c2d (#1974) * fix: free assets not displayed in c2d * feat: remove asset list from algo c2d actions --- src/@utils/assetConvertor.ts | 2 +- .../Asset/AssetActions/Compute/index.tsx | 20 +++++++------------ 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/src/@utils/assetConvertor.ts b/src/@utils/assetConvertor.ts index c8f89e953..8fce163b2 100644 --- a/src/@utils/assetConvertor.ts +++ b/src/@utils/assetConvertor.ts @@ -14,7 +14,7 @@ export async function transformAssetToAssetSelection( getServiceByName(asset, 'compute') || getServiceByName(asset, 'access') if ( - asset?.stats?.price?.value && + asset?.stats?.price?.value >= 0 && algoService?.serviceEndpoint === datasetProviderEndpoint ) { let selected = false diff --git a/src/components/Asset/AssetActions/Compute/index.tsx b/src/components/Asset/AssetActions/Compute/index.tsx index e4731583e..6333af8a0 100644 --- a/src/components/Asset/AssetActions/Compute/index.tsx +++ b/src/components/Asset/AssetActions/Compute/index.tsx @@ -498,20 +498,14 @@ export default function Compute({ {isUnsupportedPricing ? null : asset.metadata.type === 'algorithm' ? ( - <> - {asset.services[0].type === 'compute' && ( - - )} - - + ) ) : (