From 665b824fa44a665826100290df34739ccd1e7453 Mon Sep 17 00:00:00 2001 From: Maximilian Schneider Date: Fri, 20 Aug 2021 04:20:36 +0200 Subject: [PATCH] enable perp trading view --- components/TradingView/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/TradingView/index.tsx b/components/TradingView/index.tsx index f6d2027f..505a41a3 100755 --- a/components/TradingView/index.tsx +++ b/components/TradingView/index.tsx @@ -57,11 +57,7 @@ const TVChartContainer = () => { useEffect(() => { const widgetOptions: ChartingLibraryWidgetOptions = { - // TODO: stop trading view from not crash looping on perp - symbol: - selectedMarketConfig.kind == 'perp' - ? 'BTC/USDC' - : selectedMarketConfig.name, + symbol: selectedMarketConfig.name, // BEWARE: no trailing slash is expected in feed URL // tslint:disable-next-line:no-any datafeed: new (window as any).Datafeeds.UDFCompatibleDatafeed(