Fix equality test for credentials in profile merging, to match on something unique.

This commit is contained in:
Brendon Duncan 2018-06-15 21:12:25 +12:00
commit 6d90a0277a

View file

@ -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;
}
});