diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/search/SearchResults.tsx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/components/search/SearchResults.tsx b/src/components/search/SearchResults.tsx index 9d95593a..bf355220 100644 --- a/src/components/search/SearchResults.tsx +++ b/src/components/search/SearchResults.tsx @@ -29,15 +29,16 @@ const SearchResults: React.FC<SearchResultsProps> = ({ } return ( <View style={containerStyle}> - {results.map((profilePreview) => ( - <ProfilePreview - style={styles.result} - key={profilePreview.id} - {...{profilePreview}} - previewType={previewType} - screenType={screenType} - /> - ))} + {results && + results.map((profilePreview) => ( + <ProfilePreview + style={styles.result} + key={profilePreview.id} + {...{profilePreview}} + previewType={previewType} + screenType={screenType} + /> + ))} </View> ); }; |