Skip to content

Commit

Permalink
fix: forget ticks_history when we change symbol from active_symbols d…
Browse files Browse the repository at this point in the history
…ropdown
  • Loading branch information
henry-deriv committed Jun 10, 2024
1 parent b294f9a commit 43191c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/javascript/app/pages/trade/charts/digit_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,13 @@ const DigitInfo = (() => {
if (stream_id) {
if (chart.series[0].name === tick.tick.symbol) {
stream_id = tick.tick.id || null;
update(tick.tick.symbol, tick.tick.quote);
update(tick.tick.symbol, addComma(tick.tick.quote, decimal_places).replace(',', ''));
} else {
BinarySocket.send({ forget: (tick.tick.id).toString() });
stream_id = null;
}
} else {
if (chart.series[0].name !== tick.tick.symbol) {
BinarySocket.send({ forget: (tick.tick.id).toString() });
}
stream_id = tick.tick.id || null;
update(tick.tick.symbol, addComma(tick.tick.quote, decimal_places).replace(',', ''));
}
};
Expand Down

0 comments on commit 43191c9

Please sign in to comment.