Merge pull request #230 from Bitcoin-com/wallet/task/508

508 - Fix the QRCode scan.
This commit is contained in:
Jean-Baptiste Dominguez 2018-08-08 10:54:09 +09:00 committed by GitHub
commit b4bf0c314f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,9 @@ angular.module('copayApp.controllers').controller('addressbookAddController', fu
$timeout(function() {
var form = addressbookForm;
if (data && form) {
if (data.result) {
data = data.result;
}
data = data.replace(/^bitcoin(cash)?:/, '');
form.address.$setViewValue(data);
form.address.$isValid = true;