|
@@ -206,7 +206,7 @@ const ProfileScreen: FC<Props> = ({ navigation, route }) => {
|
|
|
<Text style={[styles.headerText, { fontSize: getFontSize(18), flex: 0 }]}>
|
|
|
{data.user_data.first_name} {data.user_data.last_name}
|
|
|
</Text>
|
|
|
- {isFriend === 1 && token ? (
|
|
|
+ {isFriend === 1 && token && data.own_profile === 0 ? (
|
|
|
<TouchableOpacity style={styles.friend} onPress={() => setIsModalVisible(true)}>
|
|
|
<Text style={styles.friendText}>Friend</Text>
|
|
|
<View style={{ transform: 'rotate(180deg)' }}>
|