Skip to content

Commit

Permalink
fix(core): 🚑 call setWebsocket in @deriv/core (#8513)
Browse files Browse the repository at this point in the history
Co-authored-by: Farzin Mirzaie <farzin@deriv.com>
  • Loading branch information
farzin-deriv and Farzin Mirzaie authored May 9, 2023
1 parent d9031f5 commit fc43eb8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/core/src/App/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ import { BrowserRouter as Router } from 'react-router-dom';
// eslint-disable-next-line no-unused-vars
import { withTranslation } from 'react-i18next';
import { DesktopWrapper } from '@deriv/components';
import { setUrlLanguage, initFormErrorMessages, setSharedCFDText, useOnLoadTranslation } from '@deriv/shared';
import {
setUrlLanguage,
initFormErrorMessages,
setSharedCFDText,
useOnLoadTranslation,
setWebsocket,
} from '@deriv/shared';
import { initializeTranslations, getLanguage } from '@deriv/translations';
import { CashierStore } from '@deriv/cashier';
import { CFDStore } from '@deriv/cfd';
Expand Down Expand Up @@ -66,6 +72,8 @@ const AppWithoutTranslation = ({ root_store }) => {
WS,
};

setWebsocket(WS);

return (
<>
{is_translation_loaded ? (
Expand Down

1 comment on commit fc43eb8

@vercel
Copy link

@vercel vercel bot commented on fc43eb8 May 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
binary.sx
deriv-app.binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.