Skip to content

Commit

Permalink
Fix: tx history csv fee coin
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamboster committed Sep 15, 2021
1 parent 269cc7b commit 23d2931
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,15 @@ export class WalletTransactionHistoryPage {

if (it.fees && (it.action == 'moved' || it.action == 'sent')) {
const _fee = (it.fees * this.satToUnit).toFixed(8);
const _chainCoin = this.currencyProvider.getChain(
this.wallet.coin.toLowerCase()
);
this.csvContent.push({
Date: this.formatDate(it.time * 1000),
Destination: 'Bitcoin Network Fees',
Destination: `${_chainCoin} Network Fees`,
Description: '',
Amount: '-' + _fee,
Currency: this.currency,
Currency: _chainCoin,
Txid: '',
Creator: '',
Copayers: ''
Expand Down

0 comments on commit 23d2931

Please sign in to comment.