Fixes paypro if amount has comma as decimal separator

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-19 12:26:57 -03:00
commit 0be9ee9231
3 changed files with 7 additions and 3 deletions

View file

@ -444,6 +444,9 @@ angular.module('copayApp.controllers').controller('SendController',
$scope.error = $scope.success = null;
if (!value) return '';
// Fixes when a region uses comma to separate decimals
value = value.replace(',', '.');
if (value.indexOf('bitcoin:') === 0) {
return $scope.setFromUri(value);
} else if (/^https?:\/\//.test(value)) {