From c27ce9a04106bca67a6c00989fb6670a563e0292 Mon Sep 17 00:00:00 2001 From: kate-deriv <121025168+kate-deriv@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:12:48 +0300 Subject: [PATCH] fix: add network status t the array with dependencies (#17910) --- packages/trader/src/AppV2/Containers/Trade/trade.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/trader/src/AppV2/Containers/Trade/trade.tsx b/packages/trader/src/AppV2/Containers/Trade/trade.tsx index 738424c45580..cd8d11b35845 100644 --- a/packages/trader/src/AppV2/Containers/Trade/trade.tsx +++ b/packages/trader/src/AppV2/Containers/Trade/trade.tsx @@ -32,7 +32,7 @@ const Trade = observer(() => { const chart_ref = React.useRef(null); const { client: { is_logged_in, is_switching }, - common: { current_language }, + common: { current_language, network_status }, ui: { is_dark_mode_on }, } = useStore(); const { @@ -103,7 +103,7 @@ const Trade = observer(() => { onMount(); return onUnmount; // eslint-disable-next-line react-hooks/exhaustive-deps - }, [current_language]); + }, [current_language, network_status.class]); useEffect(() => { if (is_switching) {