diff --git a/src/botPage/view/Dialogs/Chart.js b/src/botPage/view/Dialogs/Chart.js index 02b09ba227..3f81c6d5cb 100644 --- a/src/botPage/view/Dialogs/Chart.js +++ b/src/botPage/view/Dialogs/Chart.js @@ -41,7 +41,6 @@ class ChartContent extends PureComponent { this.state = { chartType : 'mountain', granularity: 0, - symbol : 'R_100', barrierType: undefined, high : undefined, low : undefined, diff --git a/src/botPage/view/View.js b/src/botPage/view/View.js index 2d1e124143..c68bd88651 100644 --- a/src/botPage/view/View.js +++ b/src/botPage/view/View.js @@ -43,6 +43,7 @@ import GTM from '../../common/gtm'; import { saveBeforeUnload } from './blockly/utils'; let realityCheckTimeout; +let chart; const api = generateLiveApiInstance(); @@ -89,8 +90,6 @@ const addBalanceForToken = token => { }); }; -const chart = new Chart(api); - const tradingView = new TradingView(); const showRealityCheck = () => { @@ -212,7 +211,9 @@ const updateTokenList = () => { $('.account-type').text(`${prefix}`); } else { $('.login-id-list').append( - `
  • ${prefix}
    ${tokenInfo.accountName}
  • ` + `
  • ${prefix}
    ${ + tokenInfo.accountName + }
  • ` ); } }); @@ -419,6 +420,10 @@ export default class View { }); $('#chartButton').click(() => { + if (!chart) { + chart = new Chart(api); + } + chart.open(); }); 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