From db6eb221d8808406376f6f95a85bf0bdcced5d56 Mon Sep 17 00:00:00 2001 From: Peter Crosthwaite Date: Fri, 19 Jun 2026 17:24:44 +1000 Subject: [PATCH] Updated failed response to display in activity log --- .../notifications/notification-log-modal.tsx | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/features/notifications/notification-log-modal.tsx b/src/features/notifications/notification-log-modal.tsx index d2a517a2..d6ce2d4e 100644 --- a/src/features/notifications/notification-log-modal.tsx +++ b/src/features/notifications/notification-log-modal.tsx @@ -79,7 +79,8 @@ export const NotificationLogModal = ({ // @ts-expect-error — payload type is not fully typed yet const payloadError = notificationLog.payload?.error; - const troubleshooting = getTroubleshootingForError(payloadError); + const dispatchError = !notificationLog.success ? notificationLog.error : null; + const troubleshooting = getTroubleshootingForError(payloadError || dispatchError); return ( @@ -131,6 +132,24 @@ export const NotificationLogModal = ({ )} + {dispatchError && ( + <> +
+
+
+
+
+ +
+ Dispatch Error +
+
+ {dispatchError} +
+
+ + )} +
{notificationLog.payload &&