Skip to content

Commit 86dcb37

Browse files
authored
Temp blocklist for showing Follow Buttons (#14380)
1 parent 85f32b1 commit 86dcb37

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

dotcom-rendering/src/components/FollowWrapper.importable.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ export const FollowWrapper = ({ id, displayName }: Props) => {
2626
const isMyGuardianEnabled = useIsMyGuardianEnabled();
2727
const isBridgetCompatible = useIsBridgetCompatible('2.5.0');
2828

29-
isBridgetCompatible && isMyGuardianEnabled && setShowFollowTagButton(true);
29+
const isNotInBlockList = (tagId: string) => {
30+
const blockList = ['profile/anas-al-sharif'];
31+
return !blockList.includes(tagId);
32+
};
33+
34+
isBridgetCompatible &&
35+
isMyGuardianEnabled &&
36+
isNotInBlockList(id) &&
37+
setShowFollowTagButton(true);
3038

3139
useEffect(() => {
3240
const topic = new Topic({

0 commit comments

Comments
 (0)