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 &&