Skip to content

Commit

Permalink
fix: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorigam committed Nov 25, 2024
1 parent 06c49d8 commit 7f8a302
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export const useWalletAdapter = () => {

// const dappKitModal = useWalletModal();

const isConenctedWithDappKit = !!account;
const isConnectedWithDappKit = !!account;
const isConnectedWithPrivy = authenticated && !!user;
const isConnected = isConenctedWithDappKit || isConnectedWithPrivy;
const isConnected = isConnectedWithDappKit || isConnectedWithPrivy;

// a wallet is in this array if it is connected to Privy
const amountOfSocialsConnectedToPrivy =
Expand All @@ -52,7 +52,7 @@ export const useWalletAdapter = () => {
const logoutAndDisconnect = async () => {
// setUser(undefined);

if (isConenctedWithDappKit) {
if (isConnectedWithDappKit) {
disconnect();
} else {
logout();
Expand All @@ -62,7 +62,7 @@ export const useWalletAdapter = () => {
return {
isConnected,
isConnectedWithPrivy,
isConenctedWithDappKit,
isConnectedWithDappKit,
username,
connectedAddress, // This is the connected address.
abstractedAccount,
Expand Down

0 comments on commit 7f8a302

Please sign in to comment.