diff --git a/nextjs-interface/src/lib/data.ts b/nextjs-interface/src/lib/data.ts index 55a7a7c..0362a92 100644 --- a/nextjs-interface/src/lib/data.ts +++ b/nextjs-interface/src/lib/data.ts @@ -39,7 +39,7 @@ export const fetchWithAuth = async (url: string) => { if (response.status === 401) { window.location.href = "/login"; } - throw new Error(`HTTP error! Status: ${response.status}`); + new Error(`HTTP error! Status: ${response.status}`); } return await response.json(); } catch (error) {