Skip to content

Commit

Permalink
fix: layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-deriv committed Oct 30, 2024
1 parent 2363d4a commit 62ed179
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/javascript/app/base/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,11 @@ const Header = (() => {
const topbar_whatsapp = getElementById('topbar-whatsapp');
const whatsapp_mobile_drawer = getElementById('whatsapp-mobile-drawer');

const livechatDisplay = cs_chat_livechat ? 'inline-flex' : 'none';
mobile_menu_livechat.style.display = livechatDisplay;
livechat.style.display = livechatDisplay;
mobile_menu_livechat.style.display = cs_chat_livechat ? 'flex' : 'none';
livechat.style.display = cs_chat_livechat ? 'inline-flex' : 'none';

const whatsappDisplay = cs_chat_whatsapp ? 'inline-flex' : 'none';
topbar_whatsapp.style.display = whatsappDisplay;
whatsapp_mobile_drawer.style.display = whatsappDisplay;
topbar_whatsapp.style.display = cs_chat_whatsapp ? 'inline-flex' : 'none';
whatsapp_mobile_drawer.style.display = cs_chat_whatsapp ? 'flex' : 'none';
})
// eslint-disable-next-line no-console
.catch(error => console.error('Error fetching feature flags:', error));
Expand Down

0 comments on commit 62ed179

Please sign in to comment.