From 34f05fa2a5e6abbbc069a84fc149fafee0d3ba1c Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sat, 15 Jul 2023 10:45:09 -0700 Subject: [PATCH] Add undefined check to error message - In some cases you can get an irrecoverable UI due to this being undefined --- .../features/action-required/components/error-fallback.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/features/action-required/components/error-fallback.tsx b/src/renderer/features/action-required/components/error-fallback.tsx index 6f06a50f..c8954afd 100644 --- a/src/renderer/features/action-required/components/error-fallback.tsx +++ b/src/renderer/features/action-required/components/error-fallback.tsx @@ -23,7 +23,7 @@ export const ErrorFallback = ({ resetErrorBoundary }: FallbackProps) => { /> Something went wrong - {error.message} + {error?.message}