Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer committed Mar 5, 2025
1 parent 061497e commit 6231f5f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions src/identity/hooks/useAvatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,14 @@ export const useAvatar = (
return useQuery<GetAvatarReturnType>({
queryKey,
queryFn: async () => {
console.log(
`[useAvatar] Cache MISS - Fetching avatar for ENS: ${ensName} on chain: ${chain.id}`,
);
const result = await getAvatar({ ensName, chain });
console.log(`[useAvatar] Fetch completed with result:`, result);
return result;
},
gcTime: cacheTime,
staleTime: staleTime,
enabled,
refetchOnWindowFocus,
select: (data: GetAvatarReturnType) => {
console.log(`[useAvatar] Query SUCCESS - Data loaded`);
return data;
},
});
Expand Down
5 changes: 0 additions & 5 deletions src/identity/hooks/useName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,14 @@ export const useName = (
return useQuery<GetNameReturnType>({
queryKey,
queryFn: async () => {
console.log(
`[useName] Cache MISS - Fetching name for address: ${address} on chain: ${chain.id}`,
);
const result = await getName({ address, chain });
console.log(`[useName] Fetch completed with result:`, result);
return result;
},
gcTime: cacheTime,
staleTime: staleTime,
enabled,
refetchOnWindowFocus,
select: (data: GetNameReturnType) => {
console.log(`[useName] Query SUCCESS - Data loaded`);
return data;
},
});
Expand Down
5 changes: 0 additions & 5 deletions src/identity/hooks/useSocials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,14 @@ export const useSocials = (
return useQuery<GetSocialsReturnType>({
queryKey,
queryFn: async () => {
console.log(
`[useSocials] Cache MISS - Fetching socials for ENS: ${ensName} on chain: ${chain.id}`,
);
const result = await getSocials({ ensName, chain });
console.log(`[useSocials] Fetch completed with result:`, result);
return result;
},
gcTime: cacheTime,
staleTime: staleTime,
enabled,
refetchOnWindowFocus,
select: (data: GetSocialsReturnType) => {
console.log(`[useSocials] Query SUCCESS - Data loaded`);
return data;
},
});
Expand Down
2 changes: 0 additions & 2 deletions src/wallet/hooks/useGetETHBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ export function useGetETHBalance(address?: Address): UseGetETHBalanceResponse {
response: ethBalanceResponse,
};
}

const convertedBalance = formatUnits(
ethBalanceResponse?.data?.value,
ETH_DECIMALS,
);

const roundedBalance = getRoundedAmount(convertedBalance, 8);
return {
convertedBalance,
Expand Down

0 comments on commit 6231f5f

Please sign in to comment.