fix: Replace isLoggedIn with token/user check in board pages

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
AutonetSellCar Deploy
2026-01-10 01:36:14 +09:00
parent e0c1f4540b
commit d4b32794dc
4 changed files with 8 additions and 4 deletions

View File

@@ -10,7 +10,8 @@ import { useTranslate } from '@/lib/useTranslate';
export default function BoardPage() {
const router = useRouter();
const searchParams = useSearchParams();
const { user, isLoggedIn } = useAuthStore();
const { user, token } = useAuthStore();
const isLoggedIn = !!token && !!user;
const { translate, language } = useTranslate();
const [posts, setPosts] = useState<BoardPostListItem[]>([]);