fix fiat amount on token change (#2042)

Serhii committed Feb 25, 2025 at 03:10 UTC 81ca38857fcf581ad197ad6135303418c827fe55
1 file changed +8
lib/src/screens/send/widgets/send_card.dart
+8
@@ -459,6 +459,14 @@ class SendCardState extends State<SendCard> with AutomaticKeepAliveClientMixin<S
459 }
460 });
461
462 + reaction((_) => sendViewModel.selectedCryptoCurrency, (Currency currency) {
463 + if (output.sendAll) {
464 + output.setSendAll(sendViewModel.balance);
465 + }
466 +
467 + output.setCryptoAmount(cryptoAmountController.text);
468 + });
469 +
470 reaction((_) => output.fiatAmount, (String amount) {
471 if (amount != fiatAmountController.text) {
472 fiatAmountController.text = amount;