We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5ce740 commit 026d105Copy full SHA for 026d105
src/models/Keychain.js
@@ -85,6 +85,7 @@ export default class Keychain {
85
}
86
87
getKeyPairByPublicKey(publicKey){
88
+ if(!publicKey) return;
89
return this.keypairs.find(key => key.publicKeys.find(x => x.key.toLowerCase() === publicKey.toLowerCase()))
90
91
0 commit comments