Fix equality test for credentials in profile merging, to match on something unique.
This commit is contained in:
parent
7209800b3c
commit
6d90a0277a
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ Profile.prototype.merge = function(other) {
|
|||
other.credentials.forEach(function(otherCredential) {
|
||||
var credentialExists = false;
|
||||
thisProfile.credentials.forEach(function(thisCredential) {
|
||||
if (otherCredential.walletId === thisCredential.walletId) {
|
||||
if (otherCredential.mnemonic === thisCredential.mnemonic) {
|
||||
credentialExists = true;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue