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

View File

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