mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix fiat amount switching after applying payment request (#3089)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user