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:
parent
983d460614
commit
49960f38e0
@ -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}>
|
||||
|
@ -149,8 +149,6 @@ export default function Compute({
|
||||
|
||||
setInitializedProviderResponse(initializedProvider)
|
||||
|
||||
console.log('here')
|
||||
|
||||
const feeAmount = await unitsToAmount(
|
||||
!isSupportedOceanNetwork || !isAssetNetwork
|
||||
? await getDummyWeb3(asset?.chainId)
|
||||
|
Loading…
Reference in New Issue
Block a user