1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-28 00:27:49 +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)
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 ? (