mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-30 05:41:41 +02:00
parent
3b5b6d56c9
commit
960d20d1ea
|
@ -40,13 +40,16 @@ export default function AssetActions({ ddo }: { ddo: DDO }): ReactElement {
|
||||||
if (!price || !price.value || !balance || !balance.ocean || !dtBalance)
|
if (!price || !price.value || !balance || !balance.ocean || !dtBalance)
|
||||||
return
|
return
|
||||||
|
|
||||||
setIsBalanceSufficient(
|
// TODO: quick hack for
|
||||||
compareAsBN(balance.ocean, `${price.value}`) || Number(dtBalance) >= 1
|
// https://github.com/oceanprotocol/market/issues/145
|
||||||
)
|
setIsBalanceSufficient(true)
|
||||||
|
// setIsBalanceSufficient(
|
||||||
|
// compareAsBN(balance.ocean, `${price.value}`) || Number(dtBalance) >= 1
|
||||||
|
// )
|
||||||
|
|
||||||
return () => {
|
// return () => {
|
||||||
setIsBalanceSufficient(false)
|
// setIsBalanceSufficient(false)
|
||||||
}
|
// }
|
||||||
}, [balance, price, dtBalance])
|
}, [balance, price, dtBalance])
|
||||||
|
|
||||||
const UseContent = isCompute ? (
|
const UseContent = isCompute ? (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user