diff --git a/client/src/components/notifications/NotificationRow.tsx b/client/src/components/notifications/NotificationRow.tsx index d0122a97b..69e2a7ece 100644 --- a/client/src/components/notifications/NotificationRow.tsx +++ b/client/src/components/notifications/NotificationRow.tsx @@ -5,6 +5,8 @@ import { Link } from "react-router-dom"; import { NotificationDocument } from "tachi-common"; export default function NotificationRow({ notif }: { notif: NotificationDocument }) { + const url = NotifToURL(notif); + return ( @@ -16,9 +18,13 @@ export default function NotificationRow({ notif }: { notif: NotificationDocument - - {notif.title} - + {url ? ( + + {notif.title} + + ) : ( + notif.title + )} @@ -36,6 +42,6 @@ function NotifToURL(notif: NotificationDocument) { case "RIVALED_BY": return `/u/${notif.body.content.userID}/games/${notif.body.content.game}/${notif.body.content.playtype}`; case "SITE_ANNOUNCEMENT": - return `#`; + return null; } }