diff --git a/lib/view_model/exchange/exchange_trade_view_model.dart b/lib/view_model/exchange/exchange_trade_view_model.dart index f0e51d2e1d..0c80538428 100644 --- a/lib/view_model/exchange/exchange_trade_view_model.dart +++ b/lib/view_model/exchange/exchange_trade_view_model.dart @@ -146,7 +146,7 @@ abstract class ExchangeTradeViewModelBase with Store { void _updateItems() { final tagFrom = - tradesStore.trade!.from.tag != null ? '${tradesStore.trade!.from.tag}' + ' ' : ''; + tradesStore.trade!.from.tag != null ? '${tradesStore.trade!.from.tag}' + ' ' : ''; final tagTo = tradesStore.trade!.to.tag != null ? '${tradesStore.trade!.to.tag}' + ' ' : ''; items.clear(); @@ -159,16 +159,6 @@ abstract class ExchangeTradeViewModelBase with Store { ), ); - if (trade.extraId != null) { - final title = trade.from == CryptoCurrency.xrp - ? S.current.destination_tag - : trade.from == CryptoCurrency.xlm - ? S.current.memo - : S.current.extra_id; - - items.add(ExchangeTradeItem(title: title, data: '${trade.extraId}', isCopied: true)); - } - items.addAll([ ExchangeTradeItem( title: S.current.amount, @@ -176,7 +166,7 @@ abstract class ExchangeTradeViewModelBase with Store { isCopied: true, ), ExchangeTradeItem( - title: S.current.estimated_receive_amount +':', + title: S.current.estimated_receive_amount + ':', data: '${tradesStore.trade?.receiveAmount} ${trade.to}', isCopied: true, ), @@ -185,12 +175,25 @@ abstract class ExchangeTradeViewModelBase with Store { data: trade.inputAddress ?? '', isCopied: true, ), + ]); + + if (trade.extraId != null) { + final title = trade.from == CryptoCurrency.xrp + ? S.current.destination_tag + : trade.from == CryptoCurrency.xlm + ? S.current.memo + : S.current.extra_id; + + items.add(ExchangeTradeItem(title: title, data: '${trade.extraId}', isCopied: true)); + } + + items.add( ExchangeTradeItem( title: S.current.arrive_in_this_address('${tradesStore.trade!.to}', tagTo) + ':', data: trade.payoutAddress ?? '', isCopied: true, ), - ]); + ); } static bool _checkIfCanSend(TradesStore tradesStore, WalletBase wallet) {