diff --git a/src/js/footer/liveChatFeatureFlag/index.js b/src/js/footer/liveChatFeatureFlag/index.js index e9db244..0f62b07 100644 --- a/src/js/footer/liveChatFeatureFlag/index.js +++ b/src/js/footer/liveChatFeatureFlag/index.js @@ -5,6 +5,7 @@ let is_whatapp_visible = false; function fetchChatData() { const liveChatWrapper = document.getElementById("live_chat-wrapper"); + try { const dataRef = ref(db, "remote_config/deriv-com/chat"); onValue( @@ -34,6 +35,7 @@ function fetchChatData() { const isPrime = window.location.pathname.includes("/deriv-prime"); if (isPrime) { + liveChatWrapper.style.flexDirection = "column-reverse"; const whatappChatBtns = document.querySelectorAll(".whatsapp_chat"); whatappChatBtns.forEach((btn) => { btn.style.visibility = "hidden";