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

fix compute settings showing up on algos

This commit is contained in:
Matthias Kretschmann 2021-04-28 19:42:35 +02:00
parent 2587c4d4b9
commit 04ef9daf9f
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -49,7 +49,7 @@ export default function AssetContent(props: AssetContentProps): ReactElement {
const [showEdit, setShowEdit] = useState<boolean>()
const [showEditCompute, setShowEditCompute] = useState<boolean>()
const [isOwner, setIsOwner] = useState(false)
const { ddo, price, metadata } = useAsset()
const { ddo, price, metadata, type } = useAsset()
useEffect(() => {
if (!accountId || !owner) return
@ -103,7 +103,7 @@ export default function AssetContent(props: AssetContentProps): ReactElement {
<Button style="text" size="small" onClick={handleEditButton}>
Edit Metadata
</Button>
{ddo.findServiceByType('compute') && (
{ddo.findServiceByType('compute') && type === 'dataset' && (
<>
<span className={styles.separator}>|</span>
<Button