Added test on controller more.js

This commit is contained in:
Matias Pando 2015-02-12 10:20:14 -03:00 committed by Gustavo Maximiliano Cortez
commit 312d707145
2 changed files with 102 additions and 8 deletions

View file

@ -492,7 +492,7 @@ angular.module('copayApp.controllers').controller('SendController',
return $scope.setFromPayPro(parsed.data.merchant);
var amount = (parsed.data && parsed.data.amount) ?
((parsed.data.amount * 100000000).toFixed(0) * satToUnit).toFixed(w.settings.unitDecimals): 0;
((parsed.data.amount * 100000000).toFixed(0) * satToUnit).toFixed(w.settings.unitDecimals) : 0;
$scope.setForm(addr, amount, parsed.data.message, true);
return addr;