From 4aec46f88091c00d4cb94efc9e2e06037fba98b8 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Mon, 6 Jun 2022 16:36:55 -0600 Subject: [PATCH] Follow notif groups => Other activity --- web/pages/notifications.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/pages/notifications.tsx b/web/pages/notifications.tsx index bed03731..c6579cab 100644 --- a/web/pages/notifications.tsx +++ b/web/pages/notifications.tsx @@ -175,7 +175,7 @@ function NotificationGroupItem(props: { className?: string }) { const { notificationGroup, className } = props - const { sourceContractId, notifications } = notificationGroup + const { sourceContractId, notifications, timePeriod } = notificationGroup const contract = useContract(sourceContractId ?? '') const numSummaryLines = 3 const [expanded, setExpanded] = useState(false) @@ -209,8 +209,14 @@ function NotificationGroupItem(props: { onClick={() => setExpanded(!expanded)} className={'line-clamp-1 cursor-pointer pl-1 sm:pl-0'} > - {'Activity on '} - {contract?.question} + {contract ? ( + + {'Activity on '} + {contract?.question} + + ) : ( + 'Other activity' + )}