Skip to content

Commit 102430e

Browse files
committed
Add hit.public check to hide FollowUserButton for private users
1 parent b6b14d3 commit 102430e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/search/testimony/TestimonyHit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const TestimonyResult = ({ hit }: { hit: Hit<Testimony> }) => {
7171
<span style={{ flexGrow: 1 }}>
7272
<b>Written by {writtenBy}</b>
7373
</span>
74-
{!isCurrentUser && followOrg && user && (
74+
{hit.public && !isCurrentUser && followOrg && user && (
7575
<FollowUserButton profileId={hit.authorUid} />
7676
)}
7777
</div>

0 commit comments

Comments
 (0)