From c714aabbcb11b01ec27f173711d7236554da2c8a Mon Sep 17 00:00:00 2001 From: Dev-CasperTheGhost <53900565+Dev-CasperTheGhost@users.noreply.github.com> Date: Sat, 5 Feb 2022 14:59:19 +0100 Subject: [PATCH] :hammer: chore: add custom error page --- packages/client/src/pages/_error.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/client/src/pages/_error.tsx b/packages/client/src/pages/_error.tsx index 515e15e4f..c913956ec 100644 --- a/packages/client/src/pages/_error.tsx +++ b/packages/client/src/pages/_error.tsx @@ -1,11 +1,8 @@ import { Button } from "components/Button"; -import { useRouter } from "next/router"; function ErrorPage({ statusCode }: any) { - const router = useRouter(); - function handleReload() { - router.reload(); + window.location.reload(); } return (