From 960d20d1eab9964dc872604efbb55f29673867b4 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 27 Oct 2020 17:30:40 +0100 Subject: [PATCH] disable user balance check for buy * quick hack for #145 --- src/components/organisms/AssetActions/index.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/organisms/AssetActions/index.tsx b/src/components/organisms/AssetActions/index.tsx index 23a5c6c5c..f09ebe411 100644 --- a/src/components/organisms/AssetActions/index.tsx +++ b/src/components/organisms/AssetActions/index.tsx @@ -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 ? (