diff --git a/app/pages/docs/error-handling.mdx b/app/pages/docs/error-handling.mdx index 0081ef7b..5fbbb09c 100644 --- a/app/pages/docs/error-handling.mdx +++ b/app/pages/docs/error-handling.mdx @@ -84,21 +84,23 @@ export default function App({ Component, pageProps }: AppProps) { function RootErrorFallback({ error, resetErrorBoundary }) { if (error.name === "AuthenticationError") { return - } else if (error.name === "AuthorizationError") { + } + + if (error.name === "AuthorizationError") { return ( ) - } else { - return ( - - ) } + + return ( + + ) } ```