From d184fd813aef1b342c9350830e1553c1809753b3 Mon Sep 17 00:00:00 2001 From: midas-myth Date: Thu, 2 Jan 2025 16:08:40 +0100 Subject: [PATCH] Fix merge effect --- src/components/DepthChart/DepthChart.tsx | 4 ++-- src/components/Synthetics/TVChart/Chart.tsx | 1 - src/components/Synthetics/TVChart/TVChart.tsx | 5 ++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/DepthChart/DepthChart.tsx b/src/components/DepthChart/DepthChart.tsx index 49d7a3eb00..67cdc24082 100644 --- a/src/components/DepthChart/DepthChart.tsx +++ b/src/components/DepthChart/DepthChart.tsx @@ -29,7 +29,7 @@ import { getMidPrice } from "domain/tokens/utils"; import { bigMath } from "lib/bigmath"; import { bigintToNumber, - calculatePriceDecimals, + calculateDisplayDecimals, expandDecimals, formatAmount, numberToBigint, @@ -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 (