From 544c7d389ca19c63d6d1587f093653da80c1f8a3 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 14 Jan 2024 07:52:02 +1100 Subject: [PATCH] Fix display of error notifications (#6232) --- .../src/components/nav/NotificationDrawer.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/nav/NotificationDrawer.tsx b/src/frontend/src/components/nav/NotificationDrawer.tsx index d38abada8b..3510fc4db7 100644 --- a/src/frontend/src/components/nav/NotificationDrawer.tsx +++ b/src/frontend/src/components/nav/NotificationDrawer.tsx @@ -97,12 +97,18 @@ export function NotificationDrawer({ to={notification?.target?.link} target="_blank" > - {notification.target?.name ?? 'target'} + {notification.target?.name ?? + notification.name ?? + t`Notification`} ) : ( - {notification.target?.name ?? 'target'} + + {notification.target?.name ?? + notification.name ?? + t`Notification`} + )} - {notification.age_human ?? 'name'} + {notification.age_human ?? ''}