diff --git a/app/components/Error.tsx b/app/components/Error.tsx index 98756b9..e52b3c4 100644 --- a/app/components/Error.tsx +++ b/app/components/Error.tsx @@ -8,7 +8,6 @@ interface Props { type?: 'full' | 'embedded'; } - function getMessage(error: Error | unknown) { if (!(error instanceof Error)) { return "An unknown error occurred"; @@ -18,9 +17,9 @@ function getMessage(error: Error | unknown) { // Traverse the error chain to find the root cause if (error.cause) { - rootError = error.cause; + rootError = error.cause as Error; while (rootError.cause) { - rootError = rootError.cause; + rootError = rootError.cause as Error; } } diff --git a/app/components/Footer.tsx b/app/components/Footer.tsx index 9f4d118..703f221 100644 --- a/app/components/Footer.tsx +++ b/app/components/Footer.tsx @@ -15,7 +15,7 @@ export default function Footer({ url, debug }: FooterProps) { return (