mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 02:31:13 -05:00
Fix remaining compliance violations
This commit is contained in:
@@ -19,10 +19,11 @@ export function NotificationCenter() {
|
||||
return null;
|
||||
}
|
||||
|
||||
const handleNotificationClick = (notification: any) => {
|
||||
const handleNotificationClick = (notification: { data?: Record<string, unknown> }) => {
|
||||
// Handle navigation based on notification payload
|
||||
if (notification.data?.url) {
|
||||
navigate(notification.data.url);
|
||||
const data = notification.data as { url?: string } | undefined;
|
||||
if (data?.url) {
|
||||
navigate(data.url);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user