1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

cleanup after merge

This commit is contained in:
EnzoVezzaro 2022-11-04 07:16:06 -04:00
parent 983d460614
commit 49960f38e0
2 changed files with 9 additions and 5 deletions

View File

@ -204,7 +204,12 @@ export default function FormStartCompute({
datasetOrderPriceAndFees,
algoOrderPriceAndFees,
providerFeeAmount,
isAssetNetwork
isAssetNetwork,
selectedAlgorithmAsset?.accessDetails,
datasetOrderPrice,
algoOrderPrice,
algorithmSymbol,
datasetSymbol
])
useEffect(() => {
@ -214,12 +219,13 @@ export default function FormStartCompute({
setIsBalanceSufficient(false)
return
}
// if one comparison of baseTokenBalance and token price comparison is false then the state will be false
setIsBalanceSufficient(
isBalanceSufficient && compareAsBN(baseTokenBalance, `${price.value}`)
baseTokenBalance && compareAsBN(baseTokenBalance, `${price.value}`)
)
})
}, [balance, dtBalance, datasetSymbol, algorithmSymbol])
}, [balance, dtBalance, datasetSymbol, algorithmSymbol, totalPrices])
return (
<Form className={styles.form}>

View File

@ -149,8 +149,6 @@ export default function Compute({
setInitializedProviderResponse(initializedProvider)
console.log('here')
const feeAmount = await unitsToAmount(
!isSupportedOceanNetwork || !isAssetNetwork
? await getDummyWeb3(asset?.chainId)