diff --git a/components/TooltipWrapper.tsx b/components/TooltipWrapper.tsx index 8ebaebc..f418760 100644 --- a/components/TooltipWrapper.tsx +++ b/components/TooltipWrapper.tsx @@ -16,7 +16,7 @@ type TooltipWrapperProps = { // Finds the SVG Element which is the outmost from element (highest parent of element which is svg) function getOutmostSVG(element: Element): SVGElement | undefined { - let rootSVG: HTMLElement | Element | null = element ?? null; + let rootSVG: HTMLElement | Element | null = element; let current: HTMLElement | Element | null = element; while (current) {