better find code
This commit is contained in:
parent
033f7c163f
commit
7c65b9907f
1 changed files with 6 additions and 2 deletions
|
|
@ -224,9 +224,13 @@ angular.module('copayApp.services')
|
|||
|
||||
try {
|
||||
var walletData = this.getUtils().fromSecret(opts.secret);
|
||||
if (root.walletClients[walletData.walletId])
|
||||
return cb(gettext('Cannot join the same wallet more that once'));
|
||||
|
||||
// check if exist
|
||||
if (lodash.find(root.profile.credentials, {
|
||||
'walletId': walletData.walletId
|
||||
})) {
|
||||
return cb(gettext('Cannot join the same wallet more that once'));
|
||||
}
|
||||
} catch (ex) {
|
||||
return cb(gettext('Bad wallet invitation'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue