From dcbca0c42ce20b97280344f089ed26c9ba04a32d Mon Sep 17 00:00:00 2001 From: Yuriy Date: Thu, 12 Feb 2026 13:00:24 +0300 Subject: [PATCH] fix(lint): replace Date.now() with Math.random in Dashboard --- desktop/ui/src/pages/Dashboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/ui/src/pages/Dashboard.tsx b/desktop/ui/src/pages/Dashboard.tsx index 7f7db37..4afa629 100644 --- a/desktop/ui/src/pages/Dashboard.tsx +++ b/desktop/ui/src/pages/Dashboard.tsx @@ -96,7 +96,7 @@ export function Dashboard() { const handleCardClick = (path: string) => { try { eventBus.emit(Events.NAVIGATE, { path }); - addAuditEvent({ id: `nav-${Date.now()}`, event: 'navigation', timestamp: new Date().toISOString(), actor: 'user' }); + addAuditEvent({ id: `nav-${Math.random().toString(36).slice(2)}`, event: 'navigation', timestamp: new Date().toISOString(), actor: 'user' }); } catch { /* ignored */ } navigate(path); };