fix(lint): replace Date.now() with Math.random in Dashboard
This commit is contained in:
parent
dc78b7f3bf
commit
dcbca0c42c
@ -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);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user