From dd0ccf25aaec5d0ef4a9e8a38e97cd8b03bad0a1 Mon Sep 17 00:00:00 2001
From: ankit-thanekar007 <ankit.thanekar007@gmail.com>
Date: Thu, 22 Apr 2021 16:44:48 -0700
Subject: Private Hotifix

---
 src/components/profile/ProfileHeader.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'src/components/profile/ProfileHeader.tsx')

diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx
index 9dc58501..494b33bd 100644
--- a/src/components/profile/ProfileHeader.tsx
+++ b/src/components/profile/ProfileHeader.tsx
@@ -17,6 +17,7 @@ type ProfileHeaderProps = {
   screenType: ScreenType;
   isBlocked: boolean;
   handleBlockUnblock: () => void;
+  isPrivate?: boolean;
 };
 
 const ProfileHeader: React.FC<ProfileHeaderProps> = ({
@@ -24,6 +25,7 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
   screenType,
   isBlocked,
   handleBlockUnblock,
+  isPrivate,
 }) => {
   const {
     profile: {name = '', university_class = 2021, university},
@@ -67,7 +69,12 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
           )}
           <View style={styles.friendsAndUniversity}>
             <FriendsCount screenType={screenType} userXId={userXId} />
-            <TouchableOpacity onPress={() => setBadgeViewVisible(true)}>
+            <TouchableOpacity
+              onPress={() => {
+                if (!isPrivate) {
+                  setBadgeViewVisible(true);
+                }
+              }}>
               <UniversityIcon
                 {...{university, university_class, needsShadow: true}}
               />
-- 
cgit v1.2.3-70-g09d2

