Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/leaderboard/hooks/useLeaderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const useLeaderboard = () => {
state: followState,
isLoading: followState
? isRefetchingFollowStates
: isFollowStatesLoading || isFetchingNextFollowStatesPage || isRefetchingFollowStates,
: isFollowStatesLoading || isFetchingNextFollowStatesPage,
},
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-button-state-batch-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const useBatchButtonStateQuery = <T extends { address: string }>({
const profilesWithFollowStates = useMemo(() => {
return profiles.map((profile, index) => {
const followState = followStatesMap.get(profile.address.toLowerCase()) as FollowStateResponse
const isLoading = followState ? isRefetchingFollowStates : true
const isLoading = followState ? isRefetchingFollowStates : (isFollowStatesLoading || isFetchingNextFollowStatesPage)

return {
...profile,
Expand Down
Loading