From 6d90a0277a168fe1759d96ebce2e3f69381b6175 Mon Sep 17 00:00:00 2001 From: Brendon Duncan Date: Fri, 15 Jun 2018 21:12:25 +1200 Subject: [PATCH] Fix equality test for credentials in profile merging, to match on something unique. --- src/js/models/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/models/profile.js b/src/js/models/profile.js index 7690d1c2d..56cc48e2e 100644 --- a/src/js/models/profile.js +++ b/src/js/models/profile.js @@ -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; } });