fix key validation
This commit is contained in:
parent
9c4cbdbf6e
commit
0d7084499f
1 changed files with 4 additions and 4 deletions
|
|
@ -207,8 +207,8 @@ angular.module('copayApp.services')
|
||||||
}, delay);
|
}, delay);
|
||||||
};
|
};
|
||||||
|
|
||||||
var shouldSkipValidation = function() {
|
var shouldSkipValidation = function(walletId) {
|
||||||
return root.profile.isChecked(platformInfo.ua, credentials.walletId) || isIOS || isWP;
|
return root.profile.isChecked(platformInfo.ua, walletId) || isIOS || isWP;
|
||||||
}
|
}
|
||||||
// Used when reading wallets from the profile
|
// Used when reading wallets from the profile
|
||||||
root.bindWallet = function(credentials, cb) {
|
root.bindWallet = function(credentials, cb) {
|
||||||
|
|
@ -227,7 +227,7 @@ angular.module('copayApp.services')
|
||||||
bwsurl: getBWSURL(credentials.walletId),
|
bwsurl: getBWSURL(credentials.walletId),
|
||||||
});
|
});
|
||||||
|
|
||||||
var skipKeyValidation = shouldSkipValidation();
|
var skipKeyValidation = shouldSkipValidation(credentials.walletId);
|
||||||
if (!skipKeyValidation)
|
if (!skipKeyValidation)
|
||||||
root.runValidation(client, 500);
|
root.runValidation(client, 500);
|
||||||
|
|
||||||
|
|
@ -497,7 +497,7 @@ angular.module('copayApp.services')
|
||||||
return cb(gettextCatalog.getString('Wallet already in Copay'));
|
return cb(gettextCatalog.getString('Wallet already in Copay'));
|
||||||
|
|
||||||
|
|
||||||
var skipKeyValidation = shouldSkipValidation();
|
var skipKeyValidation = shouldSkipValidation(walletId);
|
||||||
if (!skipKeyValidation)
|
if (!skipKeyValidation)
|
||||||
root.runValidation(client);
|
root.runValidation(client);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue