hotfix: quickfix for Trade
This commit is contained in:
parent
91b54f947b
commit
f32c7dc915
@ -271,8 +271,9 @@ export default function SwapForm(props: Props) {
|
|||||||
() =>
|
() =>
|
||||||
sellAssetAmount.isZero() ||
|
sellAssetAmount.isZero() ||
|
||||||
depositCapReachedCoins.length > 0 ||
|
depositCapReachedCoins.length > 0 ||
|
||||||
borrowAmount.isGreaterThanOrEqualTo(availableLiquidity),
|
borrowAmount.isGreaterThan(availableLiquidity) ||
|
||||||
[sellAssetAmount, depositCapReachedCoins, borrowAmount, availableLiquidity],
|
route.length === 0,
|
||||||
|
[sellAssetAmount, depositCapReachedCoins, borrowAmount, availableLiquidity, route],
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -333,7 +334,7 @@ export default function SwapForm(props: Props) {
|
|||||||
sellAsset={sellAsset}
|
sellAsset={sellAsset}
|
||||||
borrowRate={borrowAsset?.borrowRate}
|
borrowRate={borrowAsset?.borrowRate}
|
||||||
buyAction={handleBuyClick}
|
buyAction={handleBuyClick}
|
||||||
buyButtonDisabled={isSwapDisabled || route.length === 0}
|
buyButtonDisabled={isSwapDisabled}
|
||||||
showProgressIndicator={isConfirming || isRouteLoading}
|
showProgressIndicator={isConfirming || isRouteLoading}
|
||||||
isMargin={isMarginChecked}
|
isMargin={isMarginChecked}
|
||||||
borrowAmount={borrowAmount}
|
borrowAmount={borrowAmount}
|
||||||
|
Loading…
Reference in New Issue
Block a user