From 2e5487259f1a8fcda6a270bc1c7bbb9a0301d82a Mon Sep 17 00:00:00 2001 From: pbca26 Date: Wed, 1 Nov 2017 19:44:04 +0300 Subject: [PATCH] import wif close modal on rescan --- .../components/dashboard/importKeyModal/importKeyModal.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/react/src/components/dashboard/importKeyModal/importKeyModal.js b/react/src/components/dashboard/importKeyModal/importKeyModal.js index 4533c3c..5e130ce 100755 --- a/react/src/components/dashboard/importKeyModal/importKeyModal.js +++ b/react/src/components/dashboard/importKeyModal/importKeyModal.js @@ -160,6 +160,12 @@ class ImportKeyModal extends React.Component { ).then((json) => { _rescanInProgress = false; + if (rescan) { + setTimeout(() => { + this.closeModal(); + }, 2000); + } + if (!json.id && !json.result && !json.error) {