From 27ceeb9b32d304033aa46d24d0ec7622a884e240 Mon Sep 17 00:00:00 2001 From: rimar1337 <132627503+rimar1337@users.noreply.github.com> Date: Wed, 3 Sep 2025 11:21:34 +0700 Subject: [PATCH] fix not being able to log in --- src/routes/__root.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 91eebbd..13983da 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -95,7 +95,7 @@ function RootDocument({ children }: { children: React.ReactNode }) { const { agent, authed } = useAuth(); const isHome = location.pathname === "/"; const isNotifications = location.pathname.startsWith("/notifications"); - const isProfile = agent && ((location.pathname === (`/profile/${agent.assertDid}`)) || (location.pathname === (`/profile/${encodeURIComponent(agent.assertDid)}`))); + const isProfile = agent && ((location.pathname === (`/profile/${agent?.did}`)) || (location.pathname === (`/profile/${encodeURIComponent(agent?.did??"")}`))); const [postOpen, setPostOpen] = useState(false); const [postText, setPostText] = useState(""); -- 2.51.2