This commit is contained in:
Abin Toppo
2026-01-28 16:08:19 +05:30
parent 78a74472dd
commit 080f1b57cd
25 changed files with 354 additions and 314 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ export const apiCall = async <R, D = {}>(
): Promise<R> => {
try {
const token: any = store.getState().token.token;
console.log("api payload", data)
const response = await axios({
method,
url,
@@ -22,7 +22,7 @@ export const apiCall = async <R, D = {}>(
'Content-Type': contentType || 'application/json',
},
});
console.log("api response",response)
return response.data;
} catch (error: any) {
const errorMessage = error?.response?.data?.error;