mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
used price from useAsset instead of ddo (#590)
Co-authored-by: Norbi <katunanorbert@gmai.com>
This commit is contained in:
parent
f5da6e4b0b
commit
574e4a02f1
@ -18,7 +18,6 @@ export default function AssetActions(): ReactElement {
|
||||
|
||||
const [isBalanceSufficient, setIsBalanceSufficient] = useState<boolean>()
|
||||
const [dtBalance, setDtBalance] = useState<string>()
|
||||
|
||||
const isCompute = Boolean(ddo?.findServiceByType('compute'))
|
||||
|
||||
// Get and set user DT balance
|
||||
@ -74,10 +73,7 @@ export default function AssetActions(): ReactElement {
|
||||
}
|
||||
]
|
||||
|
||||
// Check from metadata, cause that is available earlier
|
||||
const hasPool = ddo?.price?.type === 'pool'
|
||||
|
||||
hasPool &&
|
||||
price?.type === 'pool' &&
|
||||
tabs.push(
|
||||
{
|
||||
title: 'Pool',
|
||||
|
Loading…
Reference in New Issue
Block a user