Fix display of error notifications (#6232)

This commit is contained in:
Oliver 2024-01-14 07:52:02 +11:00 committed by GitHub
parent ef679b1663
commit 544c7d389c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,12 +97,18 @@ export function NotificationDrawer({
to={notification?.target?.link}
target="_blank"
>
{notification.target?.name ?? 'target'}
{notification.target?.name ??
notification.name ??
t`Notification`}
</Text>
) : (
<Text size="sm">{notification.target?.name ?? 'target'}</Text>
<Text size="sm">
{notification.target?.name ??
notification.name ??
t`Notification`}
</Text>
)}
<Text size="xs">{notification.age_human ?? 'name'}</Text>
<Text size="xs">{notification.age_human ?? ''}</Text>
</Stack>
<Space />
<ActionIcon