Skip to content

Commit 84c460c

Browse files
McSamMcSam
authored andcommitted
resolve changes
1 parent ca8ac3b commit 84c460c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,13 @@ export default () => {
130130
const pollingFn = setInterval(() => {
131131
const contracts = haveContractsForSymbol(symbol);
132132
if (contracts) {
133-
resolvePollingFn(pollingFn, contracts.available);
133+
clearInterval(pollingFn);
134+
resolveContracts(contracts.available);
134135
}
135136
}, 100);
136137
setTimeout(() => {
137-
resolvePollingFn(pollingFn, []);
138+
clearInterval(pollingFn);
139+
resolveContracts([]);
138140
}, 10000);
139141
}
140142
} else {

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