From 424d2d3431c7f33cf885bc23eaf6a7a1786a5d8e Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 10 Mar 2026 21:51:02 +0000 Subject: [PATCH] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- src/components/shared/SvgTextLogo/SvgTextLogo.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index 5445582..42aaa6c 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -22,10 +22,10 @@ const SvgTextLogo: React.FC = ({ useEffect(() => { if (!svgRef.current || !animate) return; - const textElement = svgRef.current.querySelector('text'); + const textElement = svgRef.current.querySelector('text') as SVGTextPathElement | null; if (!textElement) return; - const length = textElement.getTotalLength(); + const length = (textElement as any).getTotalLength?.() ?? 0; textElement.setAttribute('stroke-dasharray', String(length)); textElement.setAttribute('stroke-dashoffset', String(length)); -- 2.49.1