mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Fix Exchange field not taking numbers (#1341)
This commit is contained in:
@@ -634,7 +634,7 @@ class ExchangePage extends BasePage {
|
||||
borderColor:
|
||||
Theme.of(context).extension<ExchangePageTheme>()!.textFieldBorderTopPanelColor,
|
||||
currencyValueValidator: (value) {
|
||||
return !exchangeViewModel.isFixedRateMode
|
||||
return !exchangeViewModel.isFixedRateMode && value != S.of(context).all
|
||||
? AmountValidator(
|
||||
isAutovalidate: true,
|
||||
currency: exchangeViewModel.depositCurrency,
|
||||
|
||||
@@ -272,9 +272,7 @@ class ExchangeCardState extends State<ExchangeCard> {
|
||||
color: Theme.of(context)
|
||||
.extension<ExchangePageTheme>()!
|
||||
.hintTextColor),
|
||||
validator: widget.hasAllAmount
|
||||
? widget.allAmountValidator
|
||||
: _isAmountEditable
|
||||
validator: _isAmountEditable
|
||||
? widget.currencyValueValidator
|
||||
: null),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user