Skip to content

Commit 96179ff

Browse files
committed
fix: remove unnecessary refetchInterval and console log in useAccessData
1 parent cf3144e commit 96179ff

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/routes/$chainSlug/_layout/access/$accessHash.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { TABLE_REFETCH_INTERVAL } from '@/config';
21
import { useQuery } from '@tanstack/react-query';
32
import { createFileRoute } from '@tanstack/react-router';
43
import { LoaderCircle } from 'lucide-react';
@@ -52,7 +51,6 @@ function useAccessData(accessHash: string, chainId: number) {
5251

5352
return { access, accessType };
5453
},
55-
refetchInterval: TABLE_REFETCH_INTERVAL,
5654
placeholderData: createPlaceholderDataFnForQueryKey(queryKey),
5755
});
5856

@@ -82,8 +80,6 @@ function AccessRoute() {
8280
error,
8381
} = useAccessData((accessHash as string).toLowerCase(), chainId!);
8482

85-
console.log(access);
86-
8783
const accessDetails = access ? buildAccessDetails({ access }) : undefined;
8884

8985
if (!isValid) {

0 commit comments

Comments
 (0)