fix fiat amount on token change (#2042)

This commit is contained in:
Serhii
2025-02-25 03:10:10 +02:00
committed by GitHub
parent 67f0a463d1
commit 81ca38857f
@@ -459,6 +459,14 @@ class SendCardState extends State<SendCard> with AutomaticKeepAliveClientMixin<S
}
});
reaction((_) => sendViewModel.selectedCryptoCurrency, (Currency currency) {
if (output.sendAll) {
output.setSendAll(sendViewModel.balance);
}
output.setCryptoAmount(cryptoAmountController.text);
});
reaction((_) => output.fiatAmount, (String amount) {
if (amount != fiatAmountController.text) {
fiatAmountController.text = amount;