From f2f8d8177e0b04a46144bfaf5141e48532208e5f Mon Sep 17 00:00:00 2001 From: AndreasGassmann Date: Mon, 9 Nov 2020 00:46:58 +0100 Subject: feat(test): add bip85 test --- src/js/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/js') diff --git a/src/js/index.js b/src/js/index.js index 80b78bc..7aa0217 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -464,7 +464,7 @@ function toggleBip85() { if (DOM.showBip85.prop('checked')) { DOM.bip85.removeClass('hidden'); - toggleBip85Fields(); + calcBip85(); } else { DOM.bip85.addClass('hidden'); } @@ -487,6 +487,10 @@ } function calcBip85() { + if (!DOM.showBip85.prop('checked')) { + return + } + toggleBip85Fields(); var app = DOM.bip85application.val(); -- cgit v1.2.3