Skip to content

Commit

Permalink
Merge pull request #653 from kate-deriv/kate/DTRA-1014/add_check_for_…
Browse files Browse the repository at this point in the history
…header_hash

DTRA-1014 / Kate / [TrackJs] -   Cannot read properties of undefined (reading 'hash')
  • Loading branch information
balakrishna-deriv authored Jun 5, 2024
2 parents b35a46f + c01a48a commit 2b2caf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/javascript/app/base/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,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);
Expand Down

0 comments on commit 2b2caf8

Please sign in to comment.