Fixes paypro if amount has comma as decimal separator
This commit is contained in:
parent
877412844c
commit
0be9ee9231
3 changed files with 7 additions and 3 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue