Skip to content

Commit

Permalink
fix(vx-demo/Dots): fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed May 12, 2020
1 parent b76088b commit 9f29aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vx-demo/src/docs-v2/examples/vx-dots/Example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default withTooltip<Props, PointsRange>(
))}
</Group>
</svg>
{tooltipOpen && tooltipData && (
{tooltipOpen && tooltipData && tooltipLeft != null && tooltipTop != null && (
<Tooltip left={tooltipLeft + 10} top={tooltipTop + 10}>
<div>
<strong>x:</strong> {x(tooltipData)}
Expand Down

0 comments on commit 9f29aa0

Please sign in to comment.