From d2708a353ddfd8222d3b6b3d9f555110e65383b1 Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Wed, 7 May 2014 11:21:30 -0300 Subject: [PATCH] fixed address validation --- index.html | 6 +++--- js/controllers/send.js | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 0121979f9..46f646ac3 100644 --- a/index.html +++ b/index.html @@ -455,9 +455,9 @@
diff --git a/js/controllers/send.js b/js/controllers/send.js index e778fede8..7658f3dad 100644 --- a/js/controllers/send.js +++ b/js/controllers/send.js @@ -148,8 +148,9 @@ angular.module('copay.send').controller('SendController', var str = (data.indexOf('bitcoin:') === 0) ? data.substring(8) : data; console.log('QR code detected: ' + str); - $scope.address = str; - $scope.$digest(); + $scope.$apply(function() { + $scope.address = str; + }); }; $scope.cancelScanner = function() {