From 9671c3985210e914f9c4c3aa4c4c4b9fc63bc447 Mon Sep 17 00:00:00 2001 From: kate-deriv Date: Mon, 3 Jun 2024 17:31:44 +0300 Subject: [PATCH] fix: and backup for chosen account tab --- src/javascript/app/base/header.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/javascript/app/base/header.js b/src/javascript/app/base/header.js index 5c7572e3a0b..54c00f52a36 100644 --- a/src/javascript/app/base/header.js +++ b/src/javascript/app/base/header.js @@ -892,7 +892,8 @@ const Header = (() => { event : 'click', activate(ui) { updateTotal(); - const currentTab = ui.currentTarget.hash; + const defaultOpenedTab = is_virtual ? '#demo_tab' : '#real_tab'; + const currentTab = ui.currentTarget ? ui.currentTarget.hash : defaultOpenedTab; if (currentTab === '#demo_tab') { manage_acc_btn.style.visibility = 'hidden'; showTradersHubLink(true);