From b5e57c8768b4b4328486bd651a8a13bf1901cb71 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 18 Apr 2024 10:59:40 -0500 Subject: [PATCH] Move gate call down --- src/view/screens/ProfileFeed.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/view/screens/ProfileFeed.tsx b/src/view/screens/ProfileFeed.tsx index 270e59eea7..a112a5229b 100644 --- a/src/view/screens/ProfileFeed.tsx +++ b/src/view/screens/ProfileFeed.tsx @@ -169,9 +169,6 @@ export function ProfileFeedScreenInner({ const feedSectionRef = React.useRef(null) const isScreenFocused = useIsFocused() const gate = useGate() - const isPrimaryAlgoExperimentEnabled = gate( - 'reduced_onboarding_and_home_algo', - ) const primaryAlgoDialogControl = useDialogControl() const primaryAlgo = preferences.primaryAlgorithm @@ -329,7 +326,7 @@ export function ProfileFeedScreenInner({ {feedInfo && hasSession && ( <> - {isPrimaryAlgoExperimentEnabled && isPrimaryAlgo ? ( + {gate('reduced_onboarding_and_home_algo') && isPrimaryAlgo ? (