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

fix: free assets not displayed in c2d (#1974)

* fix: free assets not displayed in c2d

* feat: remove asset list from algo c2d actions
This commit is contained in:
Luca Milanese 2023-10-12 14:37:15 +02:00 committed by GitHub
parent e8d96c159e
commit 031f6eb8f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 14 deletions

View File

@ -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

View File

@ -498,20 +498,14 @@ export default function Compute({
</div>
{isUnsupportedPricing ? null : asset.metadata.type === 'algorithm' ? (
<>
{asset.services[0].type === 'compute' && (
asset.services[0].type === 'compute' && (
<Alert
text={
"This algorithm has been set to private by the publisher and can't be downloaded. You can run it against any allowed datasets though!"
}
state="info"
/>
)}
<AlgorithmDatasetsListForCompute
algorithmDid={asset.id}
asset={asset}
/>
</>
)
) : (
<Formik
initialValues={getInitialValues(asset, selectedAlgorithmAsset)}