From 3941d80ff120238b973451325b834ebd8377281e Mon Sep 17 00:00:00 2001
From: Biswa Kalyan Bhuyan <biswa@surgot.in>
Date: Sat, 26 Apr 2025 01:20:12 +0530
Subject: finance/frontend: fix: fixed lint error's

---
 frontend/src/components/shared/AuthContext.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'frontend/src/components/shared/AuthContext.tsx')

diff --git a/frontend/src/components/shared/AuthContext.tsx b/frontend/src/components/shared/AuthContext.tsx
index a3ec5a0..eb27cc5 100644
--- a/frontend/src/components/shared/AuthContext.tsx
+++ b/frontend/src/components/shared/AuthContext.tsx
@@ -24,7 +24,8 @@ const AuthContext = createContext<AuthContextType | null>(null);
 export function AuthProvider({ children }: { children: ReactNode }) {
   const [user, setUser] = useState<User | null>(null);
   const [isLoading, setIsLoading] = useState<boolean>(true);
-  const router = useRouter();
+  // eslint-disable-next-line @typescript-eslint/no-unused-vars
+  const _router = useRouter();
   
   // Check if the user is already logged in
   useEffect(() => {
@@ -38,7 +39,8 @@ export function AuthProvider({ children }: { children: ReactNode }) {
       try {
         const userData = await userApi.getProfile();
         setUser(userData);
-      } catch (error) {
+      // eslint-disable-next-line @typescript-eslint/no-unused-vars
+      } catch (_error) {
         // Clear invalid token
         localStorage.removeItem('token');
       } finally {
-- 
cgit v1.2.3-59-g8ed1b

