Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 28a9379

Browse files
authored
Merge pull request #174 from hubert-deriv/fixing_endpoint_error_localhost
2 parents 1870613 + 1feb46b commit 28a9379

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils/__tests__/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('Get Server Config', () => {
179179

180180
const serverConfig = getServerConfig();
181181
expect(serverConfig.appId).toBe('1234');
182-
expect(serverConfig.serverUrl).toBe('ws.binaryws.com');
182+
expect(serverConfig.serverUrl).toBe('test.binary.sx');
183183
expect(localStorage.getItem).toHaveBeenCalledTimes(2);
184184
});
185185
});

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const getServerConfig = () => {
129129
const config_app_id = localStorage.getItem('config.app_id');
130130
if (config_app_id && config_server_url) {
131131
return {
132-
serverUrl: DEFAULT_WS_SERVER,
132+
serverUrl: config_server_url,
133133
appId: config_app_id,
134134
oauth: config_server_url,
135135
};

0 commit comments

Comments
 (0)