Fix coin to formatAmount
This commit is contained in:
parent
55c27f684c
commit
235e610d84
1 changed files with 7 additions and 7 deletions
|
|
@ -414,14 +414,14 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
|||
|
||||
var cacheCoin = txs[0].amountStr.split(' ')[1];
|
||||
|
||||
if (cacheCoin == wallet.coin)
|
||||
return;
|
||||
if (cacheCoin == 'bits') {
|
||||
|
||||
$log.debug('Fixing Tx Cache Unit to: ' + wallet.coin)
|
||||
lodash.each(txs, function(tx) {
|
||||
tx.amountStr = txFormatService.formatAmountStr(wallet.coin, tx.amount);
|
||||
tx.feeStr = txFormatService.formatAmountStr(wallet.coin, tx.fees);
|
||||
});
|
||||
$log.debug('Fixing Tx Cache Unit to: ' + 'btc')
|
||||
lodash.each(txs, function(tx) {
|
||||
tx.amountStr = txFormatService.formatAmountStr('BTC', tx.amount);
|
||||
tx.feeStr = txFormatService.formatAmountStr('BTC', tx.fees);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
getSavedTxs(walletId, function(err, txsFromLocal) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue