mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01: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)
|
||||
return
|
||||
|
||||
setIsBalanceSufficient(
|
||||
compareAsBN(balance.ocean, `${price.value}`) || Number(dtBalance) >= 1
|
||||
)
|
||||
// TODO: quick hack for
|
||||
// https://github.com/oceanprotocol/market/issues/145
|
||||
setIsBalanceSufficient(true)
|
||||
// setIsBalanceSufficient(
|
||||
// compareAsBN(balance.ocean, `${price.value}`) || Number(dtBalance) >= 1
|
||||
// )
|
||||
|
||||
return () => {
|
||||
setIsBalanceSufficient(false)
|
||||
}
|
||||
// return () => {
|
||||
// setIsBalanceSufficient(false)
|
||||
// }
|
||||
}, [balance, price, dtBalance])
|
||||
|
||||
const UseContent = isCompute ? (
|
||||
|
Loading…
Reference in New Issue
Block a user