From 85ad343d5dbdf92ef6c8c07ddf62269cc9f91fc1 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Mon, 6 Jun 2022 16:30:31 -0600 Subject: [PATCH] Follow notifications => user profile --- web/pages/notifications.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/pages/notifications.tsx b/web/pages/notifications.tsx index 98499bd2..bed03731 100644 --- a/web/pages/notifications.tsx +++ b/web/pages/notifications.tsx @@ -529,7 +529,8 @@ function NotificationItem(props: { setNotificationsAsSeen([notification]) }, [notification]) - function getSourceUrl(sourceId?: string) { + function getSourceUrl() { + if (sourceType === 'follow') return `/${sourceUserUsername}` if (!contract) return '' return `/${contract.creatorUsername}/${ contract.slug @@ -630,7 +631,7 @@ function NotificationItem(props: { return (
- +