From e6a4831940014ced3c96640d036145500f0a454d Mon Sep 17 00:00:00 2001 From: Ru Chern Chong Date: Wed, 16 Oct 2024 23:06:30 +0800 Subject: [PATCH] Urgent fix to type issue --- utils/fetchApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/fetchApi.ts b/utils/fetchApi.ts index 03c4e2e..6fdd8aa 100644 --- a/utils/fetchApi.ts +++ b/utils/fetchApi.ts @@ -29,7 +29,7 @@ export const fetchApi = async ( } return response.json(); - } catch (e) { + } catch (e: any) { console.error(e.message); throw e; }