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

Commit cd13b8d

Browse files
committed
Fix chart not loading selected symbol initially
1 parent 57d3c0e commit cd13b8d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/botPage/view/Dialogs/Chart.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class ChartContent extends PureComponent {
4444
barrierType: undefined,
4545
high : undefined,
4646
low : undefined,
47+
symbol : globalObserver.getState('symbol'),
4748
};
4849
this.shouldBarrierDisplay = false;
4950
}

src/botPage/view/blockly/blocks/trade/tradeOptions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default () => {
7272

7373
this.pollForContracts(symbol).then(contracts => {
7474
if (ev.name === 'SYMBOL_LIST' && ev.oldValue !== ev.newValue) {
75+
globalObserver.setState({ symbol: ev.newValue });
7576
// Called to update duration options and set min durations
7677
this.updateDurationLists(contracts, true, true);
7778
} else if (['TRADETYPE_LIST'].includes(ev.name) && ev.oldValue !== ev.newValue) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy