Skip to content

Commit

Permalink
chore: update package-lock and default app id fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv committed Oct 16, 2024
1 parent 03d6000 commit 3b5332b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"@deriv-com/analytics": "^1.18.0",
"@deriv-com/auth-client": "^1.0.15",
"@deriv-com/quill-ui": "^1.16.2",
"@deriv-com/utils": "^0.0.34",
"@deriv-com/utils": "^0.0.37",
"@deriv/deriv-api": "^1.0.15",
"@deriv/quill-icons": "^1.23.1",
"@livechat/customer-sdk": "4.0.2",
Expand Down
5 changes: 3 additions & 2 deletions src/javascript/_common/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ export const getServerInfo = () => {

const serverUrl = LocalStorageUtils.getValue(LocalStorageConstants.configServerURL) || localStorage.getItem('config.server_url') || 'oauth.deriv.com';

const appId = LocalStorageUtils.getValue(LocalStorageConstants.configAppId);
const lang = LocalStorageUtils.getValue(LocalStorageConstants.i18nLanguage);
const defaultAppId = WebSocketUtils.getAppId();
const appId = LocalStorageUtils.getValue(LocalStorageConstants.configAppId) || defaultAppId;
const lang = LocalStorageUtils.getValue(LocalStorageConstants.i18nLanguage) || 'en';

return {
appId,
Expand Down

0 comments on commit 3b5332b

Please sign in to comment.