From 6dbc5bbcacf99e4941ee8e1fb67bd132d0f517ed Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sat, 8 Nov 2025 17:06:23 +0900
Subject: refactor(frontend): Remove unused AuthContext.error

---
 frontend/src/contexts/AuthContext.tsx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'frontend/src/contexts/AuthContext.tsx')

diff --git a/frontend/src/contexts/AuthContext.tsx b/frontend/src/contexts/AuthContext.tsx
index 8505be2..761cc0f 100644
--- a/frontend/src/contexts/AuthContext.tsx
+++ b/frontend/src/contexts/AuthContext.tsx
@@ -11,7 +11,6 @@ type LoginResult = { success: true } | { success: false; error: string };
 interface AuthContextType {
 	isLoggedIn: boolean;
 	isLoading: boolean;
-	error: string | null;
 	login: (username: string, password: string) => Promise<LoginResult>;
 	logout: () => Promise<void>;
 }
@@ -27,7 +26,6 @@ export function AuthProvider({ children }: { children: ReactNode }) {
 
 	const isLoggedIn = !!currentUserResult.data?.currentUser;
 	const isLoading = currentUserResult.fetching;
-	const error = currentUserResult.error?.message ?? null;
 
 	const login = async (
 		username: string,
@@ -65,9 +63,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
 	};
 
 	return (
-		<AuthContext.Provider
-			value={{ isLoggedIn, isLoading, error, login, logout }}
-		>
+		<AuthContext.Provider value={{ isLoggedIn, isLoading, login, logout }}>
 			{children}
 		</AuthContext.Provider>
 	);
-- 
cgit v1.2.3-70-g09d2

