From c58692101802892db0aa1a45a6826d922df514c1 Mon Sep 17 00:00:00 2001 From: Rafael Solorzano <61289255+rafasdc@users.noreply.github.com> Date: Mon, 13 Jan 2025 13:52:19 -0800 Subject: [PATCH] chore: use substring --- app/components/Analyst/Map/Map.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/Analyst/Map/Map.tsx b/app/components/Analyst/Map/Map.tsx index b7ec1e718a..335dc28d2b 100644 --- a/app/components/Analyst/Map/Map.tsx +++ b/app/components/Analyst/Map/Map.tsx @@ -24,7 +24,7 @@ import { useEffect, useRef, useState } from 'react'; import styles from './Tooltip.module.css'; const generateUniqueKey = () => { - return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`; + return `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`; }; const convertKmlColorToHex = (