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