diff --git a/web/src/feature/AccountList/index.tsx b/web/src/feature/AccountList/index.tsx index ff372c6..392e011 100644 --- a/web/src/feature/AccountList/index.tsx +++ b/web/src/feature/AccountList/index.tsx @@ -1,4 +1,3 @@ -import { useOAuthContext } from "@/context/oauth"; import { type LocalAccount } from "@/repository/account"; import { useAuth } from "@/store/auth"; import { CirclePlus, User } from "lucide-react"; @@ -11,14 +10,11 @@ const AccountList: FC = () => { const location = useLocation(); - const oauth = useOAuthContext(); - const handleAccountSelect = useCallback( (account: LocalAccount) => { - oauth.selectSession(account.access); updateActiveAccount(account); }, - [oauth, updateActiveAccount] + [updateActiveAccount] ); return (