Skip to content

Commit

Permalink
Merge pull request #665 from balakrishna-deriv/fix-trackjs-issue
Browse files Browse the repository at this point in the history
Bala/ Fix trackjs issue
  • Loading branch information
balakrishna-deriv authored Jul 15, 2024
2 parents 4b95ee0 + 32a677a commit 7d241da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/javascript/app/pages/trade/charts/digit_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ const DigitInfo = (() => {
};

const updateChart = async (tick) => {
if (typeof chart === 'undefined') {
return;
}

const decimal_places = await Symbols.getUnderlyingPipSize(tick.tick.symbol);
if (stream_id) {
if (chart.series[0].name === tick.tick.symbol) {
Expand Down
3 changes: 2 additions & 1 deletion src/javascript/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ const getSocketURL = () => {

const loginid = window.localStorage.getItem('active_loginid');
const is_real = loginid && !/^VRT/.test(loginid);
const server = isProduction() && is_real ? 'green' : 'red';
const real_server = is_real ? 'green' : 'blue';
const server = isProduction() ? real_server : 'red';

server_url = `${server}.derivws.com`;
}
Expand Down

0 comments on commit 7d241da

Please sign in to comment.