Skip to content

Commit

Permalink
Merge branch 'v0.3.x' into feat/426-show-btc-usd-price
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-babylonlabs authored Dec 5, 2024
2 parents cb79acf + 6021c6d commit 47da314
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/app/api/getFinalityProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,9 @@ interface DescriptionAPI {

export const getFinalityProviders = async (
key: string,
sort: string,
): Promise<PaginatedFinalityProviders> => {
// const limit = 100;
// const reverse = false;

const params = {
pagination_key: encode(key),
sort,
// "pagination_reverse": reverse,
// "pagination_limit": limit,
};

const response = await apiWrapper(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const FinalityProviders: React.FC<FinalityProvidersProps> = ({
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
Expand Down

0 comments on commit 47da314

Please sign in to comment.