allow browser back button to load session when accounts opened

This commit is contained in:
Ajay Bura 2026-08-21 11:51:43 +05:30
commit a32b92c3c8

View file

@ -94,12 +94,10 @@ type AccountSwitcherProps = {
};
function AccountSwitcher({ cords, requestClose }: AccountSwitcherProps) {
const navigate = useNavigate();
const setSessionUserId = useSetAtom(sessionUserIdAtom);
const sessions = useSessions();
const handleManageAccounts = () => {
setSessionUserId(undefined);
navigate(getRootPath());
};