mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-19 13:11:23 -04:00
Not access taxon in SuggestionsResult if none
This commit is contained in:
@@ -44,6 +44,10 @@ const SuggestionsResult = ( {
|
||||
}
|
||||
}, [forcedHeight] );
|
||||
|
||||
if ( !taxon ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const accessibleName = accessibleTaxonName( taxon, currentUser, t );
|
||||
|
||||
// A representative photo is dependant on the actual image that was scored by computer vision
|
||||
|
||||
Reference in New Issue
Block a user