Skip to content

Commit

Permalink
fix sentry chart
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Feb 5, 2024
1 parent b4c96ff commit cd4e225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/oraidex-common-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-common-ui",
"version": "1.0.4",
"version": "1.0.5",
"files": [
"dist/"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function TVChartContainer({

useEffect(() => {
if (chartReady && tvWidgetRef.current && currentPair.symbol !== tvWidgetRef.current?.activeChart?.().symbol()) {
tvWidgetRef.current.setSymbol(currentPair.symbol, tvWidgetRef.current.activeChart().resolution(), () => {});
tvWidgetRef.current.setSymbol(currentPair.symbol, tvWidgetRef.current.activeChart().resolution(), () => { });
}
}, [currentPair, chartReady, period]);

Expand All @@ -76,7 +76,7 @@ export default function TVChartContainer({
if (tvReloadTimestamp && Date.now() - tvReloadTimestamp > TV_CHART_RELOAD_INTERVAL) {
if (resetCache) {
resetCache();
tvWidgetRef.current.activeChart().resetData();
tvWidgetRef.current?.activeChart().resetData();
}
}
}
Expand Down

0 comments on commit cd4e225

Please sign in to comment.