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));