Merge branch 'main' of https://git.zeptic.in/rohit/Procurelinc into etenderMerge

This commit is contained in:
Abin Toppo
2026-01-12 18:15:55 +05:30
47 changed files with 1794 additions and 1252 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import axios from 'axios';
import { NavigationString, showErrorAlert, Variable } from '../Constant/AllImports';
import { setToken } from '../Redux/Slices/Token';
import { store } from '../Redux/Store';
@@ -50,7 +49,7 @@ export const apiCall = async <R, D = {}>(
return response.data;
} catch (error: any) {
const errorMessage = error?.response?.data?.error;
{ error?.response?.data?.error && showErrorAlert(error?.response?.data?.error || '') }
console.log(errorMessage, '---------------------------api error message');
if (error?.response?.status === 401) {
store.dispatch(setToken({}));