From 98f8a89afb7992f469a0f043618948abf3c16f52 Mon Sep 17 00:00:00 2001 From: yann300 Date: Sat, 2 Mar 2019 00:32:06 +0100 Subject: [PATCH] fix switching module --- src/app/components/swap-panel-component.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/swap-panel-component.js b/src/app/components/swap-panel-component.js index c3ed5851d0..7f95d6a3a2 100644 --- a/src/app/components/swap-panel-component.js +++ b/src/app/components/swap-panel-component.js @@ -34,12 +34,11 @@ class SwapPanelComponent { showContent (moduleName) { // hiding the current view and display the `moduleName` - if (moduleName === this.currentNode) return if (this.contents[moduleName]) { - this.contents[moduleName].style.display = 'block' if (this.currentNode) { this.contents[this.currentNode].style.display = 'none' } + this.contents[moduleName].style.display = 'block' this.currentNode = moduleName var item = this.store.getOne(moduleName) this.header.innerHTML = item.profile ? item.profile.displayName : ' - '