Skip to content

Commit

Permalink
fix: removes comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ianoc90 authored Sep 12, 2024
1 parent 439b825 commit 117957d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/visx-xychart/src/utils/findNearestStackDatum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function findNearestStackDatum<
horizontal?: boolean,
) {
const { xScale, yScale, point } = nearestDatumArgs;
const datum = (horizontal ? findNearestDatumY : findNearestDatumX)(nearestDatumArgs); // <-- might be something wrong with the datum.index here
const datum = (horizontal ? findNearestDatumY : findNearestDatumX)(nearestDatumArgs);
const stack = datum?.datum.data.stack;
const seriesDatum = seriesData.find((d) => {
const { yAccessor, xAccessor } = childAccessors;
Expand Down

0 comments on commit 117957d

Please sign in to comment.