diff --git a/src/script/components/ErrorFallback/ErrorFallback.tsx b/src/script/components/ErrorFallback/ErrorFallback.tsx index 4685f559b06..0e94101ff78 100644 --- a/src/script/components/ErrorFallback/ErrorFallback.tsx +++ b/src/script/components/ErrorFallback/ErrorFallback.tsx @@ -29,7 +29,9 @@ const logger = getLogger('ErrorFallback'); export const ErrorFallback = ({error, resetErrorBoundary}: FallbackProps) => { useEffect(() => { - logger.error(error); + const customError = new Error(); + logger.error({originalError: error, originalStack: error?.stack, fallbackInvocationStack: customError.stack}); + PrimaryModal.show(PrimaryModal.type.CONFIRM, { preventClose: true, secondaryAction: {