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

Preview action fixes (#1171)

* disable pool/trade tab in preview again

* hide collection button on preview

* cleanup

* render fix
This commit is contained in:
Matthias Kretschmann 2022-03-09 14:12:37 +00:00 committed by GitHub
parent a988b4d81f
commit ccb50b56e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View File

@ -263,9 +263,14 @@ export default function Download({
{!isInPurgatory && <PurchaseButton />}
</div>
</div>
<div className={styles.collect}>
{asset.nft.owner === accountId && <CollectTokensButton />}
</div>
{asset?.accessDetails?.datatoken?.name !== '' &&
asset?.nft.owner === accountId && (
<div className={styles.collect}>
<CollectTokensButton />
</div>
)}
{asset?.metadata?.type === 'algorithm' && (
<AlgorithmDatasetsListForCompute
algorithmDid={asset.id}

View File

@ -162,12 +162,12 @@ export default function AssetActions({
{
title: 'Pool',
content: <Pool />,
disabled: !asset?.accessDetails.datatoken
disabled: asset?.accessDetails.datatoken.name === ''
},
{
title: 'Trade',
content: <Trade />,
disabled: !asset?.accessDetails.datatoken
disabled: asset?.accessDetails.datatoken.name === ''
}
)