diff --git a/lib/home/transactions.dart b/lib/home/transactions.dart index 8b9c6423..38757ac4 100644 --- a/lib/home/transactions.dart +++ b/lib/home/transactions.dart @@ -287,10 +287,13 @@ class HomeTxItem2 extends StatelessWidget { // if (showOnlySwap) return _SwapTxHomeListItem(transaction: tx); final label = tx.label ?? ''; + final isReceive = tx.isReceived(); final amount = context.select( - (CurrencyCubit x) => x.state - .getAmountInUnits(tx.getNetAmountIncludingFees(), removeText: true), + (CurrencyCubit x) => x.state.getAmountInUnits( + isReceive ? tx.getNetAmountToPayee() : tx.getNetAmountIncludingFees(), + removeText: true, + ), ); final units = context.select( @@ -335,8 +338,6 @@ class HomeTxItem2 extends StatelessWidget { : statusImg; } - final isReceive = tx.isReceived(); - final amt = '${isReceive ? '' : ''}${amount.replaceAll("-", "")}'; // final wallet = tx.wallet!; diff --git a/lib/wallet/wallet_txs.dart b/lib/wallet/wallet_txs.dart index 4fcd3ae6..581eccfa 100644 --- a/lib/wallet/wallet_txs.dart +++ b/lib/wallet/wallet_txs.dart @@ -139,7 +139,7 @@ class HomeTxItem extends StatelessWidget { var amount = context.select( (CurrencyCubit x) => x.state.getAmountInUnits( - tx.getNetAmountIncludingFees(), + isReceive ? tx.getNetAmountToPayee() : tx.getNetAmountIncludingFees(), isLiquid: tx.isLiquid, ), );