From e8cd7ab131720ebc37093c599573f032b51f3218 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 26 Aug 2025 02:13:54 +0300 Subject: Remove handle suggestion gate (#8899) * remove handle suggestion gate * rm from list of gates --- src/lib/statsig/gates.ts | 1 - src/screens/Signup/StepHandle/index.tsx | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index 8ec86c971..ef6dc1d4d 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -5,7 +5,6 @@ export type Gate = | 'debug_subscriptions' | 'disable_onboarding_policy_update_notice' | 'explore_show_suggested_feeds' - | 'handle_suggestions' | 'old_postonboarding' | 'onboarding_add_video_feed' | 'post_follow_profile_suggested_accounts' diff --git a/src/screens/Signup/StepHandle/index.tsx b/src/screens/Signup/StepHandle/index.tsx index aaab435ae..5bf6b2269 100644 --- a/src/screens/Signup/StepHandle/index.tsx +++ b/src/screens/Signup/StepHandle/index.tsx @@ -9,7 +9,6 @@ import Animated, { import {msg, Plural, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {useGate} from '#/lib/statsig/statsig' import { createFullHandle, MAX_SERVICE_HANDLE_LENGTH, @@ -28,14 +27,12 @@ import {useThrottledValue} from '#/components/hooks/useThrottledValue' import {At_Stroke2_Corner0_Rounded as AtIcon} from '#/components/icons/At' import {Check_Stroke2_Corner0_Rounded as CheckIcon} from '#/components/icons/Check' import {Text} from '#/components/Typography' -import {IS_INTERNAL} from '#/env' import {BackNextButtons} from '../BackNextButtons' import {HandleSuggestions} from './HandleSuggestions' export function StepHandle() { const {_} = useLingui() const t = useTheme() - const gate = useGate() const {state, dispatch} = useSignupContext() const [draftValue, setDraftValue] = useState(state.handle) const isNextLoading = useThrottledValue(state.isLoading, 500) @@ -193,8 +190,7 @@ export function StepHandle() { {isHandleAvailable.suggestions && - isHandleAvailable.suggestions.length > 0 && - (gate('handle_suggestions') || IS_INTERNAL) && ( + isHandleAvailable.suggestions.length > 0 && ( { -- cgit 1.4.1