do not cache total in current unit

This commit is contained in:
Ivan Socolsky 2014-12-19 16:44:59 -03:00
commit 553b0fca0d
2 changed files with 1 additions and 3 deletions

View file

@ -414,7 +414,7 @@ angular.module('copayApp.controllers').controller('SendController',
} else {
$scope._merchantData = merchantData;
$scope._domain = merchantData.domain;
$scope.setForm(null, merchantData.unitTotal);
$scope.setForm(null, merchantData.total * satToUnit);
}
});
};

View file

@ -1798,8 +1798,6 @@ Wallet.prototype._addOutputsToMerchantData = function(merchantData) {
if (merchantData.total == "0" && options.amount) {
merchant.outs[0].amountSatStr = merchantData.total = options.amount;
}
merchantData.unitTotal = merchantData.total ? (+merchantData.total / this.settings.unitToSatoshi) + '' : 0;
};
/**