Fix followers collection story

This commit is contained in:
Gabe Kangas
2023-01-12 14:45:53 -08:00
parent a0fecb7e1f
commit bf3ee58e87
2 changed files with 268 additions and 216 deletions

View File

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