Fix pagination parameters. Closes #2835

This commit is contained in:
Gabe Kangas
2023-03-17 21:10:56 -07:00
parent 3f3cb13405
commit 3b8982089d

View File

@@ -23,7 +23,9 @@ export const FollowerCollection: FC<FollowerCollectionProps> = ({ name, onFollow
const getFollowers = async () => {
try {
const response = await fetch(`${ENDPOINT}?page=${page}&limit=${ITEMS_PER_PAGE}`);
const response = await fetch(
`${ENDPOINT}?offset=${page * ITEMS_PER_PAGE}&limit=${ITEMS_PER_PAGE}`,
);
const data = await response.json();
const { results, total: totalResults } = data;