aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/index.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 84c773f..763967c 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -625,7 +625,7 @@
625 625
626 function clearDisplay() { 626 function clearDisplay() {
627 clearAddressesList(); 627 clearAddressesList();
628 clearKey(); 628 clearKeys();
629 hideValidationError(); 629 hideValidationError();
630 } 630 }
631 631
@@ -641,10 +641,20 @@
641 } 641 }
642 } 642 }
643 643
644 function clearKey() { 644 function clearKeys() {
645 clearRootKey();
646 clearDerivedKeys();
647 }
648
649 function clearRootKey() {
645 DOM.rootKey.val(""); 650 DOM.rootKey.val("");
651 }
652
653 function clearDerivedKeys() {
646 DOM.extendedPrivKey.val(""); 654 DOM.extendedPrivKey.val("");
647 DOM.extendedPubKey.val(""); 655 DOM.extendedPubKey.val("");
656 DOM.bip44accountXprv.val("");
657 DOM.bip44accountXpub.val("");
648 } 658 }
649 659
650 function addAddressToList(indexText, address, pubkey, privkey) { 660 function addAddressToList(indexText, address, pubkey, privkey) {