feat(swap form): disable range input when balance is zero (#333)
This commit is contained in:
parent
1b34cb77eb
commit
fef4608681
@ -149,7 +149,7 @@ export default function SwapForm(props: Props) {
|
||||
<RangeInput
|
||||
wrapperClassName='p-4'
|
||||
onBlur={dismissInputFocus}
|
||||
disabled={isTransactionExecuting}
|
||||
disabled={isTransactionExecuting || accountSellAssetDeposit.isZero()}
|
||||
onChange={handleRangeInputChange}
|
||||
value={sellAssetAmount.shiftedBy(-sellAsset.decimals).toNumber()}
|
||||
max={accountSellAssetDeposit.shiftedBy(-sellAsset.decimals).toNumber()}
|
||||
|
Loading…
Reference in New Issue
Block a user