diff --git a/src/pages/notifications/Notifications.jsx b/src/pages/notifications/Notifications.jsx index 462236f6e..0cf001664 100644 --- a/src/pages/notifications/Notifications.jsx +++ b/src/pages/notifications/Notifications.jsx @@ -100,58 +100,59 @@ export default function Notifications() { const createdDate = notification?.created; const timeSince = calculatePrettyTimeElapsedSince(createdDate); - const notificationText = ( - - {intl.formatMessage( - { - id: currentNotificationSchema?.notificationMessage, - }, - { - userName: ( - - - {userName} - - - ), - user1Name, - user2Name, - yourIndividualName: ( - - - {yourIndName} - - - ), - theirIndividualName: ( - - - {theirIndividualName} - - - ), - formattedDeadline, - }, - )} - - ); + const notificationText = + currentNotificationSchema?.notificationMessage ? ( + + {intl.formatMessage( + { + id: currentNotificationSchema.notificationMessage, + }, + { + userName: ( + + + {userName} + + + ), + user1Name, + user2Name, + yourIndividualName: ( + + + {yourIndName} + + + ), + theirIndividualName: ( + + + {theirIndividualName} + + + ), + formattedDeadline, + }, + )} + + ) : null; const howLongAgoText = (