diff --git a/src/components/pages/global/Staking/StakingChart.tsx b/src/components/pages/global/Staking/StakingChart.tsx index 5c1e92996..6a312225d 100644 --- a/src/components/pages/global/Staking/StakingChart.tsx +++ b/src/components/pages/global/Staking/StakingChart.tsx @@ -126,12 +126,13 @@ export default function StakingChart() { payload, label, }: TooltipProps) => ( -
+
{label &&

{label} + {payload && tokenPriceADX && tokenPriceALP ? ({ tmp + (x.payload.ADXAmount * tokenPriceADX + x.payload.ALPAmount * tokenPriceALP), 0)} + nb={payload.reduce((tmp, x) => tmp + (x.payload[`${x.dataKey}Amount`] * (x.dataKey === 'ADX' ? tokenPriceADX : tokenPriceALP)), 0)} precision={0} isDecimalDimmed={false} className={twMerge("text-lg text-txtfade")} @@ -175,13 +176,13 @@ export default function StakingChart() { /> - {tokenPriceALP ? <> + {tokenPriceALP && tokenPriceADX ? <>