diff --git a/src/app/api/getFinalityProviders.ts b/src/app/api/getFinalityProviders.ts index 77063881..cb5a803a 100644 --- a/src/app/api/getFinalityProviders.ts +++ b/src/app/api/getFinalityProviders.ts @@ -37,16 +37,9 @@ interface DescriptionAPI { export const getFinalityProviders = async ( key: string, - sort: string, ): Promise => { - // const limit = 100; - // const reverse = false; - const params = { pagination_key: encode(key), - sort, - // "pagination_reverse": reverse, - // "pagination_limit": limit, }; const response = await apiWrapper( diff --git a/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx b/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx index aac6009a..7794ef13 100644 --- a/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx +++ b/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx @@ -35,7 +35,7 @@ export const FinalityProviders: React.FC = ({ isRefetchError: isRefetchFinalityProvidersError, } = useInfiniteQuery({ queryKey: ["finality providers"], - queryFn: ({ pageParam = "" }) => getFinalityProviders(pageParam, "random"), + queryFn: ({ pageParam = "" }) => getFinalityProviders(pageParam), getNextPageParam: (lastPage) => lastPage?.pagination?.next_key !== "" ? lastPage?.pagination?.next_key