From bb2641f44791d010ab78eebbb699d2ede0bcafd3 Mon Sep 17 00:00:00 2001 From: stacksmash76 <98354295+stacksmash76@users.noreply.github.com> Date: Sat, 18 Jun 2022 07:27:19 +0200 Subject: [PATCH] fix(web): correctly replace logout url (#316) * chore(ErrorPage): clean up code, fix typo fix(Logout): replace /logout URL after logging out to / * chore: remove needless TS type export --- web/src/components/alerts/ErrorPage.tsx | 15 +++++---------- web/src/screens/auth/login.tsx | 2 +- web/src/screens/auth/logout.tsx | 10 ++++++++-- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/web/src/components/alerts/ErrorPage.tsx b/web/src/components/alerts/ErrorPage.tsx index b9fd295..e3152b9 100644 --- a/web/src/components/alerts/ErrorPage.tsx +++ b/web/src/components/alerts/ErrorPage.tsx @@ -3,20 +3,15 @@ import type { FallbackProps } from "react-error-boundary"; import { RefreshIcon } from "@heroicons/react/solid"; export const ErrorPage = ({ error, resetErrorBoundary }: FallbackProps) => { - const stack = new StackTracey(error).withSources(); + const stack = new StackTracey(error); const summary = stack.clean().asTable({ maxColumnWidths: { callee: 48, file: 48, - sourceLine: 256 + sourceLine: 384 } }); - const type = String( - (error && error.constructor && error.constructor.name) - || typeof (error) - ); - const msg = String(error && error.message); return (
@@ -67,7 +62,7 @@ export const ErrorPage = ({ error, resetErrorBoundary }: FallbackProps) => {) : null} - You can try resetting the page page using the button provided below. + You can try resetting the page state using the button provided below. However, this is not guaranteed to fix the error.