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

comment out compute component for now

This commit is contained in:
Matthias Kretschmann 2020-07-14 17:17:43 +02:00
parent 27779d538b
commit 9991c5452f
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 9 additions and 8 deletions

View File

@ -13,7 +13,7 @@ export default function AssetActions({
metadata: MetaDataMarket
did: string
}): ReactElement {
const { ocean, balanceInOcean } = useOcean()
// const { ocean, balanceInOcean } = useOcean()
const { access } = metadata.additionalInformation
const isCompute = access && access === 'Compute'
@ -26,12 +26,13 @@ export default function AssetActions({
<div className={styles.tabContent}>
<TabPanel>
{isCompute ? (
<Compute
did={did}
metadata={metadata}
ocean={ocean}
balance={balanceInOcean}
/>
// <Compute
// did={did}
// metadata={metadata}
// ocean={ocean}
// balance={balanceInOcean}
// />
'Compute Me'
) : (
<Consume did={did} metadata={metadata} />
)}

View File

@ -16,7 +16,7 @@ export async function connectWallet(
}
}
await connect({ providerOptions })
await connect({ cacheProvider: true, providerOptions })
}
export function accountTruncate(account: string): string {