From 7843487b766a67b139f3e10d444332b66c3fedaa Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 9 Oct 2022 18:52:41 -0700 Subject: [PATCH] Fix followers request --- .../ui/followers/FollowerCollection/FollowerCollection.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx index 3622bf5eb..034ee39fc 100644 --- a/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx +++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx @@ -17,9 +17,10 @@ export const FollowerCollection: FC = () => { try { const response = await fetch(`${ENDPOINT}?page=${page}`); const data = await response.json(); + const { results, total: totalResults } = data; - setFollowers(data.response); - setTotal(data.total); + setFollowers(results); + setTotal(totalResults); } catch (error) { console.error(error); }