Remove subtracting fees from fiat amount

This commit is contained in:
OmarHatem 2022-11-23 17:44:45 +02:00
parent 44165e6492
commit 15bb5ff08e

View file

@ -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;
}
});