diff --git a/js/controllers/send.js b/js/controllers/send.js index 3f21a5bfb..5a266192d 100644 --- a/js/controllers/send.js +++ b/js/controllers/send.js @@ -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); } }); }; diff --git a/js/models/Wallet.js b/js/models/Wallet.js index 933e13e5e..d65391bcc 100644 --- a/js/models/Wallet.js +++ b/js/models/Wallet.js @@ -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; }; /**