Merge pull request #4100 from JDonadio/fix/send-max

Fix float point
This commit is contained in:
Ivan Socolsky 2016-04-21 10:44:17 -03:00
commit 4761b68fcd
1 changed files with 1 additions and 1 deletions

View File

@ -1297,7 +1297,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
confirmDialog.show(msg, function(confirmed) {
if (confirmed) {
self._doSendMax(resp.amount * self.satToUnit);
self._doSendMax(parseFloat((resp.amount * self.satToUnit).toFixed(self.unitDecimals)));
} else {
self.resetForm();
}