This repository was archived by the owner on Feb 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ class ChartContent extends PureComponent {
41
41
this . state = {
42
42
chartType : 'mountain' ,
43
43
granularity : 0 ,
44
- symbol : 'R_100' ,
45
44
barrierType : undefined ,
46
45
high : undefined ,
47
46
low : undefined ,
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import GTM from '../../common/gtm';
43
43
import { saveBeforeUnload } from './blockly/utils' ;
44
44
45
45
let realityCheckTimeout ;
46
+ let chart ;
46
47
47
48
const api = generateLiveApiInstance ( ) ;
48
49
@@ -89,8 +90,6 @@ const addBalanceForToken = token => {
89
90
} ) ;
90
91
} ;
91
92
92
- const chart = new Chart ( api ) ;
93
-
94
93
const tradingView = new TradingView ( ) ;
95
94
96
95
const showRealityCheck = ( ) => {
@@ -212,7 +211,9 @@ const updateTokenList = () => {
212
211
$ ( '.account-type' ) . text ( `${ prefix } ` ) ;
213
212
} else {
214
213
$ ( '.login-id-list' ) . append (
215
- `<a href="#" value="${ tokenInfo . token } "><li><span>${ prefix } </span><div>${ tokenInfo . accountName } </div></li></a><div class="separator-line-thin-gray"></div>`
214
+ `<a href="#" value="${ tokenInfo . token } "><li><span>${ prefix } </span><div>${
215
+ tokenInfo . accountName
216
+ } </div></li></a><div class="separator-line-thin-gray"></div>`
216
217
) ;
217
218
}
218
219
} ) ;
@@ -419,6 +420,10 @@ export default class View {
419
420
} ) ;
420
421
421
422
$ ( '#chartButton' ) . click ( ( ) => {
423
+ if ( ! chart ) {
424
+ chart = new Chart ( api ) ;
425
+ }
426
+
422
427
chart . open ( ) ;
423
428
} ) ;
424
429
You can’t perform that action at this time.
0 commit comments