From 79f15aa6a87c9c9bc4eddd0b5e5a95e31ed52373 Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Tue, 14 Dec 2021 20:10:18 -0500 Subject: [PATCH] redraw lines after changing market --- components/TradingView/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/TradingView/index.tsx b/components/TradingView/index.tsx index 77acd27a..96db98f1 100755 --- a/components/TradingView/index.tsx +++ b/components/TradingView/index.tsx @@ -92,6 +92,7 @@ const TVChartContainer = () => { defaultProps.interval, () => {} ) + drawLines() } }, [selectedMarketConfig.name]) @@ -328,6 +329,8 @@ const TVChartContainer = () => { } function getLine(order, market) { + console.log('order price', order.price) + return tvWidgetRef.current .chart() .createOrderLine({ disableUndo: false })