diff --git a/src/components/notifications/Actions/index.tsx b/src/components/notifications/Actions/index.tsx index a2d57214f..ccf8d8a95 100644 --- a/src/components/notifications/Actions/index.tsx +++ b/src/components/notifications/Actions/index.tsx @@ -46,7 +46,7 @@ export const Actions = ({ notification, showActions }: ActionProps): JSX.Element > - {notification.get_actions().map((action) => { + {notification.get_actions().filter((a) => a.id !== '').map((action) => { return ; })} diff --git a/src/components/notifications/Notification/index.tsx b/src/components/notifications/Notification/index.tsx index d7d23b5bb..40846b81c 100644 --- a/src/components/notifications/Notification/index.tsx +++ b/src/components/notifications/Notification/index.tsx @@ -29,7 +29,7 @@ export const NotificationCard = ({ }: NotificationCardProps): JSX.Element => { let actionBox: ActionBox | null; - if (notification.get_actions().length) { + if (notification.get_actions().filter((a) => a.id !== '').length) { actionBox = ; } else { actionBox = null;