From 4bd2fae1fe729d9cf82bd9e4b39d39f806ce5758 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sat, 8 Nov 2025 16:13:48 +0900
Subject: refactor(frontend): Simplify AuthContextType

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

(limited to 'frontend/src/components/ProtectedRoute.tsx')

diff --git a/frontend/src/components/ProtectedRoute.tsx b/frontend/src/components/ProtectedRoute.tsx
index 0cfef42..206e5c5 100644
--- a/frontend/src/components/ProtectedRoute.tsx
+++ b/frontend/src/components/ProtectedRoute.tsx
@@ -7,7 +7,7 @@ interface Props {
 }
 
 export function ProtectedRoute({ children }: Props) {
-	const { user, isLoading } = useAuth();
+	const { isLoggedIn, isLoading } = useAuth();
 
 	if (isLoading) {
 		return (
@@ -24,7 +24,7 @@ export function ProtectedRoute({ children }: Props) {
 		);
 	}
 
-	if (!user) {
+	if (!isLoggedIn) {
 		return <Redirect to="/login" />;
 	}
 
-- 
cgit v1.2.3-70-g09d2

