mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-20 17:54:41 +00:00
Remove subtracting fees from fiat amount
This commit is contained in:
parent
44165e6492
commit
15bb5ff08e
1 changed files with 1 additions and 7 deletions
|
@ -556,13 +556,7 @@ class SendCardState extends State<SendCard>
|
|||
|
||||
reaction((_) => output.fiatAmount, (String amount) {
|
||||
if (amount != fiatAmountController.text) {
|
||||
if (sendViewModel.outputs[0].sendAll) {
|
||||
final doubleAmount = double.tryParse(amount) ?? 0;
|
||||
final doubleFee = sendViewModel.estimatedFee;
|
||||
fiatAmountController.text = doubleAmount - doubleFee > 0 ? "${doubleAmount - doubleFee}" : "0.00";
|
||||
} else {
|
||||
fiatAmountController.text = amount;
|
||||
}
|
||||
fiatAmountController.text = amount;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue