+1
-1
src/routes/__root.tsx
+1
-1
src/routes/__root.tsx
···
95
95
const { agent, authed } = useAuth();
96
96
const isHome = location.pathname === "/";
97
97
const isNotifications = location.pathname.startsWith("/notifications");
98
-
const isProfile = agent && ((location.pathname === (`/profile/${agent.assertDid}`)) || (location.pathname === (`/profile/${encodeURIComponent(agent.assertDid)}`)));
98
+
const isProfile = agent && ((location.pathname === (`/profile/${agent?.did}`)) || (location.pathname === (`/profile/${encodeURIComponent(agent?.did??"")}`)));
99
99
100
100
const [postOpen, setPostOpen] = useState(false);
101
101
const [postText, setPostText] = useState("");