Skip to content

Commit

Permalink
[charts] Fix internal spelling typo (#15805)
Browse files Browse the repository at this point in the history
Signed-off-by: Ziv Levy <zivl@users.noreply.github.com>
Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
  • Loading branch information
zivl and alexfauquette authored Dec 9, 2024
1 parent 78c8314 commit c185e2f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c185e2f

Please sign in to comment.