From b903517e88d0e8561a0d93aa2e04c3fc191b130b Mon Sep 17 00:00:00 2001 From: Markus Thielker Date: Thu, 26 Dec 2024 12:34:53 +0100 Subject: [PATCH] NORY-26: remove case on top of error handling --- authentication/src/ory/hooks.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/authentication/src/ory/hooks.tsx b/authentication/src/ory/hooks.tsx index 5c81e04..a03dd8d 100644 --- a/authentication/src/ory/hooks.tsx +++ b/authentication/src/ory/hooks.tsx @@ -18,12 +18,6 @@ export const HandleError = ( return async ( error: AxiosError, ): Promise => { - if (!error.response || error.response?.status === 0) { - window.location.href = `/flow/error?error=${encodeURIComponent( - JSON.stringify(error.response), - )}`; - return Promise.resolve(); - } const responseData = error.response?.data || {};