keys: fix key validation #18

Merged
offbyn merged 1 commits from fix-key-validation into master 2 years ago

@ -541,7 +541,6 @@ importBtn.addEventListener('click', () => {
settingsForm.addEventListener('input', () => validKeys(privateKeyInput.value, pubKeyInput.value));
function validKeys(privatekey, pubkey) {
if (pubkey && privatekey) {
try {
if (getPublicKey(privatekey) === pubkey) {
statusMessage.hidden = true;
@ -554,7 +553,6 @@ function validKeys(privatekey, pubkey) {
} catch (e) {
statusMessage.textContent = `not a valid private-key: ${e.message || e}`;
}
}
statusMessage.hidden = false;
importBtn.setAttribute('disabled', true);
return false;

Loading…
Cancel
Save