replace 32 bit op with toFixed

This commit is contained in:
Matias Alejo Garcia 2014-08-22 22:04:59 -04:00
commit 55a3a871b8

View file

@ -58,7 +58,7 @@ angular.module('copayApp.controllers').controller('SendController',
$scope.loading = true;
var address = form.address.$modelValue;
var amount = (form.amount.$modelValue * config.unitToSatoshi) | 0;
var amount = parseInt((form.amount.$modelValue * config.unitToSatoshi).toFixed(0));
var commentText = form.comment.$modelValue;
var w = $rootScope.wallet;