From 40eea8277c479abc7763d432f284e0724c67970d Mon Sep 17 00:00:00 2001 From: kate-deriv Date: Fri, 27 Dec 2024 13:52:29 +0300 Subject: [PATCH] fix: add network status t the array with dependencies --- 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 ac0fc5b79f29..ce1a2ac21d90 100644 --- a/packages/trader/src/AppV2/Containers/Trade/trade.tsx +++ b/packages/trader/src/AppV2/Containers/Trade/trade.tsx @@ -31,7 +31,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 { @@ -92,7 +92,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) {