From 0aa36bac86620bd52da54257bb4b42156e25a60f Mon Sep 17 00:00:00 2001 From: djbadders <34887832+djbadders@users.noreply.github.com> Date: Tue, 9 Feb 2021 19:49:42 +0000 Subject: [PATCH] Fixed TradingView chart flashing in the bag details pop-up --- Core/Helper/SystemHelper.cs | 11 +---------- Monitor/Pages/_get/BagDetails.cshtml | 5 ++++- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/Core/Helper/SystemHelper.cs b/Core/Helper/SystemHelper.cs index da10013..021c12f 100644 --- a/Core/Helper/SystemHelper.cs +++ b/Core/Helper/SystemHelper.cs @@ -536,16 +536,7 @@ namespace Core.Helper string result = "#"; if (platform.Equals("TradingView")) { - result = "https://www.tradingview.com/chart/?symbol=" + exchange.ToUpper() + ":"; - - string pairName = SystemHelper.StripBadCode(market, Constants.WhiteListMinimal); - - if (pairName.StartsWith(mainMarket)) - { - pairName = pairName.Replace(mainMarket, "") + mainMarket; - } - - result += pairName; + result = "https://uk.tradingview.com/symbols/" + market.ToUpper() + "/?exchange=" + exchange.ToUpper(); } else if (platform.Equals("TradingViewFutures")) { diff --git a/Monitor/Pages/_get/BagDetails.cshtml b/Monitor/Pages/_get/BagDetails.cshtml index 88f2a35..087a4e1 100644 --- a/Monitor/Pages/_get/BagDetails.cshtml +++ b/Monitor/Pages/_get/BagDetails.cshtml @@ -102,7 +102,10 @@