From 98df17b73a59942aa7b74d20a75da637db59ab88 Mon Sep 17 00:00:00 2001 From: Celine Sarafa Date: Thu, 25 Jan 2024 12:49:04 +0100 Subject: [PATCH] chore: change undefined to null --- .../notifications/AppNotifications/AppNotificationItem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/notifications/AppNotifications/AppNotificationItem.tsx b/src/components/notifications/AppNotifications/AppNotificationItem.tsx index e24b7e84..1c7b6694 100644 --- a/src/components/notifications/AppNotifications/AppNotificationItem.tsx +++ b/src/components/notifications/AppNotifications/AppNotificationItem.tsx @@ -20,7 +20,7 @@ export interface IAppNotification { message: string isRead: boolean timestamp: number - url?: string + url: string | null } interface IAppNotificationProps { notification: IAppNotification @@ -30,7 +30,7 @@ interface IAppNotificationProps { const AppNotificationItemLink: React.FC<{ children: React.ReactNode - url?: string + url: string | null className?: string }> = ({ children, url, ...props }) => { if (!url) return
{children}