Skip to content

Commit

Permalink
chore: change undefined to null
Browse files Browse the repository at this point in the history
  • Loading branch information
devceline committed Jan 25, 2024
1 parent 30e5741 commit 98df17b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface IAppNotification {
message: string
isRead: boolean
timestamp: number
url?: string
url: string | null
}
interface IAppNotificationProps {
notification: IAppNotification
Expand All @@ -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 <div {...props}>{children}</div>
Expand Down

0 comments on commit 98df17b

Please sign in to comment.