Skip to content

Commit

Permalink
fix: market closed (deriv-com#15157)
Browse files Browse the repository at this point in the history
  • Loading branch information
balakrishna-deriv authored and vinu-deriv committed May 28, 2024
1 parent abd45e5 commit d99e437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/trader/src/Stores/Modules/Trading/trade-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ export default class TradeStore extends BaseStore {
this.root_store.contract_trade.updateAccumulatorBarriersData(current_spot_data);
}
};
if (this.is_market_closed) {
if (isMarketClosed(this.active_symbols, req.ticks_history)) {
delete req.subscribe;
WS.getTicksHistory(req).then(passthrough_callback, passthrough_callback);
} else if (req.subscribe === 1) {
Expand Down

0 comments on commit d99e437

Please sign in to comment.