From 0662159145770f72e23a517251fe9b22164ab733 Mon Sep 17 00:00:00 2001 From: shahanneda Date: Wed, 28 Dec 2022 01:29:13 -0500 Subject: [PATCH] Edited types --- components/TooltipWrapper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {