Fix profile load on empty

This commit is contained in:
aeroreyna
2022-03-26 23:24:21 -07:00
parent f99e1a2f77
commit d12c90bf28

View File

@@ -65,8 +65,7 @@ let Profile = ({ navigation, route }) => {
return ( return (
<SafeAreaView style={styles.container}> <SafeAreaView style={styles.container}>
<View> <View>
{Posts.length === 0 && <ActivityIndicator />} {(Posts.length !== 0 || profile._id) &&
{Posts.length !== 0 &&
<FlatList <FlatList
data={Posts} data={Posts}
renderItem={renderPost} renderItem={renderPost}