From dcc4d693f5359775a38b3ea57286e7548db03f60 Mon Sep 17 00:00:00 2001 From: MMD Date: Tue, 6 Oct 2026 15:47:32 +0330 Subject: [PATCH] fix(frontend): declare pathname alongside location in RequireAuth (pm merge semantic conflict) --- frontend/src/App.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index f751e4e..6275b03 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -59,6 +59,7 @@ function Loading() { function RequireAuth({ children }: { children: React.ReactNode }) { const user = useAuthStore((s) => s.user); const location = useLocation(); + const pathname = location.pathname; // در صورت داشتن شناسه پیش‌نویس (از ربات بله)، دسترسی مستقیم به ویزارد بدون لاگین مجاز است const searchParams = new URLSearchParams(location.search);