From 4a95c3104de1c227745c04d1654fc1066577607e Mon Sep 17 00:00:00 2001 From: CalDescent <> Date: Fri, 1 Jul 2022 16:59:42 +0100 Subject: [PATCH] Fixed issues when detecting lite nodes. --- qortal-ui-core/src/components/sidenav-menu.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/qortal-ui-core/src/components/sidenav-menu.js b/qortal-ui-core/src/components/sidenav-menu.js index 1d1066f8..8ff90e4d 100644 --- a/qortal-ui-core/src/components/sidenav-menu.js +++ b/qortal-ui-core/src/components/sidenav-menu.js @@ -78,12 +78,7 @@ class SidenavMenu extends connect(store)(LitElement) { return response.json() }) .then(data => { - const myNodeType = data.type - if (myNodeType === 'light') { - this.nodeType = 'light' - } else { - this.nodeType = 'full' - } + this.nodeType = data.type }) .catch(err => { console.error('Request failed', err); @@ -91,7 +86,7 @@ class SidenavMenu extends connect(store)(LitElement) { } renderNodeTypeMenu() { - if (this.nodeType === 'light') { + if (this.nodeType === 'lite') { return html`