Skip to content

Commit

Permalink
fix: add network status t the array with dependencies (#17910)
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-deriv authored Jan 6, 2025
1 parent 392e99b commit c27ce9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/trader/src/AppV2/Containers/Trade/trade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Trade = observer(() => {
const chart_ref = React.useRef<HTMLDivElement>(null);
const {
client: { is_logged_in, is_switching },
common: { current_language },
common: { current_language, network_status },
ui: { is_dark_mode_on },
} = useStore();
const {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c27ce9a

Please sign in to comment.