mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-05-19 13:56:58 -04:00
horked up another comment
This commit is contained in:
@@ -99,6 +99,7 @@ const useInfiniteExploreScroll = (
|
||||
let observations: ApiObservation[] = flatten( pages?.map( r => r.results ) ) || [];
|
||||
let totalResults: number | null | undefined = pages?.[0]?.total_results;
|
||||
|
||||
// filter out obs from excluded user and adjust count
|
||||
if ( excludedUser && observations ) {
|
||||
observations = observations.filter(
|
||||
observation => observation?.user?.id !== excludedUser.id,
|
||||
|
||||
Reference in New Issue
Block a user