Skip to content

Commit

Permalink
fix SR levels label spammed multiple time (#2291)
Browse files Browse the repository at this point in the history
* fix SR levels label spammed multiple time

* update env

* Update pr.yaml
  • Loading branch information
XiaoYhun authored Oct 18, 2023
1 parent eab9bac commit 8147ca6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/pages/TrueSightV2/components/chart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2781,9 +2781,8 @@ export const Prochart = ({
const subscriptionDataLoaded = tvWidget?.activeChart()?.onDataLoaded()
subscriptionDataLoaded?.subscribe(null, handleDataLoaded, true)

if (!showSRLevels) {
removeSRLevels()
} else {
removeSRLevels()
if (showSRLevels) {
addSRLevels()
}
} catch (error) {}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/TrueSightV2/pages/TechnicalAnalysis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function TechnicalAnalysis() {
candleSize: priceChartResolution,
currency: liveChartTab === ChartTab.First ? 'USD' : 'BTC',
},
{ skip: !chain || !address },
{ skip: !chain || !address, pollingInterval: 60000 },
)

const SRLevels: ISRLevel[] = useMemo(() => {
Expand Down

0 comments on commit 8147ca6

Please sign in to comment.