fix get fee levels function
This commit is contained in:
parent
6e0ad4dafc
commit
005c5c3aae
1 changed files with 3 additions and 4 deletions
|
|
@ -51,10 +51,9 @@ angular.module('copayApp.services').factory('feeService', function($log, $stateP
|
||||||
if (errLivenet || errTestnet) {
|
if (errLivenet || errTestnet) {
|
||||||
return cb(gettextCatalog.getString('Could not get dynamic fee'));
|
return cb(gettextCatalog.getString('Could not get dynamic fee'));
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < 4; i++) {
|
lodash.each(lodash.union(levelsLivenet, levelsTestnet), function(level) {
|
||||||
levelsLivenet[i]['feePerKBUnit'] = txFormatService.formatAmount(levelsLivenet[i].feePerKB) + ' ' + unitName;
|
level.feePerKBUnit = txFormatService.formatAmount(level.feePerKB) + ' ' + unitName;
|
||||||
levelsTestnet[i]['feePerKBUnit'] = txFormatService.formatAmount(levelsTestnet[i].feePerKB) + ' ' + unitName;
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return cb(null, {
|
return cb(null, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue