Skip to content

Commit

Permalink
Fix merge effect
Browse files Browse the repository at this point in the history
  • Loading branch information
midas-myth committed Jan 2, 2025
1 parent 74e2332 commit d184fd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/DepthChart/DepthChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { getMidPrice } from "domain/tokens/utils";
import { bigMath } from "lib/bigmath";
import {
bigintToNumber,
calculatePriceDecimals,
calculateDisplayDecimals,
expandDecimals,
formatAmount,
numberToBigint,
Expand Down Expand Up @@ -498,7 +498,7 @@ function Tick(props: any) {
const { x, y, height, textAnchor, payload, verticalAnchor, index, marketPriceIndex } = props;

const value = numberToBigint(payload.value as number, USD_DECIMALS);
const visual = formatAmount(value, USD_DECIMALS, calculatePriceDecimals(value), false);
const visual = formatAmount(value, USD_DECIMALS, calculateDisplayDecimals(value), false);

return (
<Text
Expand Down
1 change: 0 additions & 1 deletion src/components/Synthetics/TVChart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useSelector } from "context/SyntheticsStateContext/utils";
import { useLocalStorageSerializeKey } from "lib/localStorage";

import { TVChartHeader } from "./TVChartHeader";

import { DepthChart } from "components/DepthChart/DepthChart";
import Tab from "components/Tab/Tab";
import { TVChart } from "./TVChart";
Expand Down
5 changes: 2 additions & 3 deletions src/components/Synthetics/TVChart/TVChart.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { t } from "@lingui/macro";
import { useEffect, useMemo } from "react";

import TVChartContainer, { ChartLine } from "components/TVChartContainer/TVChartContainer";
import { USD_DECIMALS } from "config/factors";
import { SUPPORTED_RESOLUTIONS_V2 } from "config/tradingview";
import {
Expand All @@ -14,15 +13,15 @@ import { selectSetIsCandlesLoaded } from "context/SyntheticsStateContext/selecto
import { selectSelectedMarketVisualMultiplier } from "context/SyntheticsStateContext/selectors/statsSelectors";
import { useSelector } from "context/SyntheticsStateContext/utils";
import { convertTokenAddress, getPriceDecimals, getTokenVisualMultiplier } from "sdk/configs/tokens";

import { PositionOrderInfo, isIncreaseOrderType, isSwapOrderType } from "domain/synthetics/orders";
import { getTokenData } from "domain/synthetics/tokens";

import { useChainId } from "lib/chains";
import { CHART_PERIODS } from "lib/legacy";
import { useLocalStorageSerializeKey } from "lib/localStorage";
import { formatAmount } from "lib/numbers";

import TVChartContainer, { ChartLine } from "components/TVChartContainer/TVChartContainer";

import "./TVChart.scss";

const DEFAULT_PERIOD = "5m";
Expand Down

0 comments on commit d184fd8

Please sign in to comment.