aboutsummaryrefslogtreecommitdiff
path: root/src/components/search
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-01-26 18:23:44 -0500
committerIvan Chen <ivan@tagg.id>2021-01-26 18:23:44 -0500
commitd70ade2e653ee93aca09d62ab7822b8d0f6dc2b5 (patch)
tree2c3cf599cf0bdeb99ee97e1b226e5c8f17b59e6e /src/components/search
parentbefc480c50d90d829c53953476ccfe99e26c9260 (diff)
fixed no internet app crash
Diffstat (limited to 'src/components/search')
-rw-r--r--src/components/search/Explore.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/search/Explore.tsx b/src/components/search/Explore.tsx
index 4a71249b..2a3bc749 100644
--- a/src/components/search/Explore.tsx
+++ b/src/components/search/Explore.tsx
@@ -12,9 +12,10 @@ const Explore: React.FC = () => {
return (
<View style={styles.container}>
<Text style={styles.header}>Search Profiles</Text>
- {EXPLORE_SECTION_TITLES.map((title: ExploreSectionType) => (
- <ExploreSection key={title} title={title} users={explores[title]} />
- ))}
+ {explores &&
+ EXPLORE_SECTION_TITLES.map((title: ExploreSectionType) => (
+ <ExploreSection key={title} title={title} users={explores[title]} />
+ ))}
</View>
);
};