Fix % of the transaction. Show fee level

This commit is contained in:
Gustavo Maximiliano Cortez 2016-04-07 11:32:06 -03:00
commit 66dc5e1933
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 2 additions and 3 deletions

View file

@ -9,7 +9,7 @@ angular.module('copayApp.controllers').controller('confirmTxController', functio
this.feeLevel = feeService.feeOpts[feeService.getCurrentFeeLevel()];
this.feeAlternativeStr = parseFloat((rateService.toFiat(fee, feeAlternativeIsoCode)).toFixed(2), 10) + ' ' + feeAlternativeIsoCode;
this.feeRateStr = (fee / amount * 100).toFixed(2) + '%' ;
this.feeRateStr = (fee / (amount + fee) * 100).toFixed(2) + '%' ;
};
this.close = function(cb) {