fix fiat amount switching after applying payment request (#3089)

This commit is contained in:
malik1004x
2026-03-14 14:22:10 +01:00
committed by GitHub
parent 209713e226
commit 9e88d4bf96
+5
View File
@@ -449,6 +449,11 @@ class _NewSendPageState extends State<NewSendPage> {
fiatInputMode: _fiatInputMode,
onSwitchButtonPressed: () {
setState(() {
if(!_fiatInputMode) {
widget.sendViewModel.outputs[_selectedOutput]
.cryptoAmount =
_amountControllers[_selectedOutput].text;
}
_fiatInputMode = !_fiatInputMode;
_amountControllers[_selectedOutput].text =
_fiatInputMode