1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 05:41:41 +02:00

disable user balance check for buy

* quick hack for #145
This commit is contained in:
Matthias Kretschmann 2020-10-27 17:30:40 +01:00
parent 3b5b6d56c9
commit 960d20d1ea
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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 ? (