diff --git a/packages/x-charts/src/ChartsTooltip/ChartsAxisTooltipContent.tsx b/packages/x-charts/src/ChartsTooltip/ChartsAxisTooltipContent.tsx index a6a0f2bfcdc4..a175b3fb4f9e 100644 --- a/packages/x-charts/src/ChartsTooltip/ChartsAxisTooltipContent.tsx +++ b/packages/x-charts/src/ChartsTooltip/ChartsAxisTooltipContent.tsx @@ -25,17 +25,17 @@ export interface ChartsAxisTooltipContentProps { function ChartsAxisTooltipContent(props: ChartsAxisTooltipContentProps) { const { classes: propClasses, sx } = props; - const tootlipData = useAxisTooltip(); + const tooltipData = useAxisTooltip(); const xAxis = useXAxis(); const yAxis = useYAxis(); const classes = useUtilityClasses(propClasses); - if (tootlipData === null) { + if (tooltipData === null) { return null; } - const { axisDirection, axisValue, axisFormattedValue, seriesItems } = tootlipData; + const { axisDirection, axisValue, axisFormattedValue, seriesItems } = tooltipData; const axis = axisDirection === 'x' ? xAxis : yAxis;