Merge pull request #1438 from cmgustavo/bug/join-input
Invalidate bitcoin addresses on the input field of join a wallet
This commit is contained in:
commit
1517951e0c
1 changed files with 2 additions and 1 deletions
|
|
@ -88,7 +88,8 @@ angular.module('copayApp.directives')
|
|||
require: 'ngModel',
|
||||
link: function(scope, elem, attrs, ctrl) {
|
||||
var validator = function(value) {
|
||||
ctrl.$setValidity('walletSecret', Boolean(walletFactory.decodeSecret(value)));
|
||||
var a = new Address(value);
|
||||
ctrl.$setValidity('walletSecret', !a.isValid() && Boolean(walletFactory.decodeSecret(value)));
|
||||
return value;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue