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:
parent
e8d96c159e
commit
031f6eb8f1
@ -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
|
||||
|
@ -498,20 +498,14 @@ export default function Compute({
|
||||
</div>
|
||||
|
||||
{isUnsupportedPricing ? null : asset.metadata.type === 'algorithm' ? (
|
||||
<>
|
||||
{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}
|
||||
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"
|
||||
/>
|
||||
</>
|
||||
)
|
||||
) : (
|
||||
<Formik
|
||||
initialValues={getInitialValues(asset, selectedAlgorithmAsset)}
|
||||
|
Loading…
Reference in New Issue
Block a user