From 4700325786d81a8d98856f0b7a308f2dfe3b0ece Mon Sep 17 00:00:00 2001 From: Nuzhy-Deriv Date: Tue, 5 Nov 2024 16:30:28 +0800 Subject: [PATCH] fix: build issue --- 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 f2f52f59008..5f29ce9a82b 100644 --- a/src/javascript/app/base/header.js +++ b/src/javascript/app/base/header.js @@ -80,9 +80,10 @@ const Header = (() => { 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 => { if (document.getElementById('deriv_livechat')) { DerivLiveChat.init(); } + // eslint-disable-next-line no-console console.error('Error fetching feature flags:', error); }); };