Skip to content

Commit

Permalink
🐛 Username was not resolved (#989)
Browse files Browse the repository at this point in the history
* 🐛 Username was not resolved

* 🔥 Remove useless code
  • Loading branch information
bal7hazar authored Nov 6, 2024
1 parent 5e983f2 commit 06abf9a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/profile/src/hooks/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ import { useEffect } from "react";
import { useParams } from "react-router-dom";

export function useUsername({ address }: { address: string }) {
const { data } = useAccountNameQuery(
{ address },
{
enabled: false,
},
);
const { data } = useAccountNameQuery({ address });

return { username: data?.accounts?.edges?.[0]?.node?.username ?? "" };
}
Expand Down

0 comments on commit 06abf9a

Please sign in to comment.