From dd0ccf25aaec5d0ef4a9e8a38e97cd8b03bad0a1 Mon Sep 17 00:00:00 2001 From: ankit-thanekar007 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 = ({ @@ -24,6 +25,7 @@ const ProfileHeader: React.FC = ({ screenType, isBlocked, handleBlockUnblock, + isPrivate, }) => { const { profile: {name = '', university_class = 2021, university}, @@ -67,7 +69,12 @@ const ProfileHeader: React.FC = ({ )} - setBadgeViewVisible(true)}> + { + if (!isPrivate) { + setBadgeViewVisible(true); + } + }}> -- cgit v1.2.3-70-g09d2