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,
|
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}>
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user