Skip to content

Commit

Permalink
Looks like this file needs an update anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
clintandrewhall committed Jul 28, 2020
1 parent 0ccbafd commit 886ded7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Tooltip: FC<{ service: ChartTooltipService }> = React.memo(({ service }) =

useEffect(() => {
const subscription = service.tooltipState$.subscribe((tooltipState) => {
if (refCallback.current) {
if (refCallback.current && typeof refCallback.current === 'function') {
// update trigger
refCallback.current(tooltipState.target);
}
Expand Down

0 comments on commit 886ded7

Please sign in to comment.