1
0
Fork 0
mirror of https://codeberg.org/MarkusThielker/next-ory.git synced 2025-04-09 03:38:42 +00:00

NORY-26: remove case on top of error handling

This commit is contained in:
Markus Thielker 2024-12-26 12:34:53 +01:00
parent b2552cb729
commit b903517e88
No known key found for this signature in database

View file

@ -18,12 +18,6 @@ export const HandleError = (
return async (
error: AxiosError<any, unknown>,
): Promise<AxiosError | void> => {
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 || {};