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 (
<SafeAreaView style={styles.container}>
<View>
{Posts.length === 0 && <ActivityIndicator />}
{Posts.length !== 0 &&
{(Posts.length !== 0 || profile._id) &&
<FlatList
data={Posts}
renderItem={renderPost}