Fix profile load on empty
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user