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