Skip to content

Commit

Permalink
fix: call switchHeader before authorize
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-deriv committed Mar 14, 2024
1 parent 1d9d351 commit 5e2176e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
4 changes: 1 addition & 3 deletions src/javascript/app/base/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,17 @@ const Header = (() => {
};

const onLoad = () => {
const shadow_header = getElementById('template_header');
populateAccountsList();
populateWalletAccounts();
bindSvg();
switchHeaders();
BinarySocket.wait('authorize','landing_company').then(() => {
switchHeaders();
setHeaderUrls();
bindPlatform();
bindClick();
});
if (Client.isLoggedIn()) {
displayAccountStatus();
shadow_header.remove();
}
fullscreen_map.event.forEach(event => {
document.addEventListener(event, onFullScreen, false);
Expand Down
2 changes: 0 additions & 2 deletions src/templates/_common/_layout/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Head from './head.jsx';
import Header from './header.jsx';
// import MobileMenu from './mobile_menu.jsx';
import WalletHeader from './wallet-header.jsx';
import TemplateHeader from './templateHeader.jsx';
import DerivIFrame from '../includes/deriv-iframe.jsx';
// import Elevio from '../includes/elevio.jsx';
import Gtm from '../includes/gtm.jsx';
Expand Down Expand Up @@ -69,7 +68,6 @@ const Layout = () => {
<Gtm />
<div id='msg_notification' className='notice-msg center-text' />
<div id='page-wrapper'>
<TemplateHeader />
<Header />
<WalletHeader />
<div id='content-holder'>
Expand Down
16 changes: 0 additions & 16 deletions src/templates/_common/_layout/templateHeader.jsx

This file was deleted.

0 comments on commit 5e2176e

Please sign in to comment.