Skip to content

Commit

Permalink
update pagesize
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsupa597 committed Dec 6, 2022
1 parent 4cb7653 commit 9b23461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/contracts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const ContractList = () => {
const {
push,
asPath,
query: { before = null, after = null, page_size = SIZES[2], tx_count_sort = 'DESC', ...restQuery },
query: { before = null, after = null, page_size = SIZES[1], tx_count_sort = 'DESC', ...restQuery },
} = useRouter()

const { isLoading, data } = useQuery(
Expand All @@ -108,7 +108,7 @@ const ContractList = () => {
tx_count_sort: tx_count_sort as string,
before: before as string,
after: after as string,
limit: Number.isNaN(+page_size) ? +SIZES[2] : +page_size,
limit: Number.isNaN(+page_size) ? +SIZES[1] : +page_size,
}),
{
refetchInterval: 10000,
Expand Down

0 comments on commit 9b23461

Please sign in to comment.