Skip to content

Commit

Permalink
Debug Connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed May 31, 2024
1 parent d65cbd9 commit 6357a7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/profile/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { FiExternalLink } from "react-icons/fi";
import {
useAccount,
useConnect,
useConnectors,
useDisconnect,
useEnsAvatar,
useEnsName
Expand All @@ -17,14 +18,15 @@ export const UserProfile = () => {
const { data: avatar } = useEnsAvatar({ name: name || "" });
const { disconnect } = useDisconnect();
const { connect } = useConnect();
const connectors = useConnectors();

if (!address) {
return (
<button
className="btn"
onClick={() => connect({ connector: embedConnector })}
>
Connect
Connect ({connectors.map((c) => c.name).join(", ")})
</button>
);
}
Expand Down

0 comments on commit 6357a7c

Please sign in to comment.