commit
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user