diff options
author | Eric Bailey <git@esb.lol> | 2024-08-08 11:48:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 11:48:42 -0500 |
commit | 85fe95c988d34384879a74164ba58d329e34def8 (patch) | |
tree | f969c6e1eb2862cc4bf16796912043ba3bf86346 /src/state/shell/progress-guide.tsx | |
parent | e1df2b0b160c32ef2d62eef067808b1ff8c25e51 (diff) | |
download | voidsky-85fe95c988d34384879a74164ba58d329e34def8.tar.zst |
Remove new_user_progress_guide (#4895)
Diffstat (limited to 'src/state/shell/progress-guide.tsx')
-rw-r--r-- | src/state/shell/progress-guide.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/state/shell/progress-guide.tsx b/src/state/shell/progress-guide.tsx index c9b42a263..d64e9984f 100644 --- a/src/state/shell/progress-guide.tsx +++ b/src/state/shell/progress-guide.tsx @@ -2,7 +2,6 @@ import React from 'react' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {useGate} from '#/lib/statsig/statsig' import { ProgressGuideToast, ProgressGuideToastRef, @@ -61,7 +60,6 @@ export function Provider({children}: React.PropsWithChildren<{}>) { const {data: preferences} = usePreferencesQuery() const {mutateAsync, variables, isPending} = useSetActiveProgressGuideMutation() - const gate = useGate() const activeProgressGuide = ( isPending ? variables : preferences?.bskyAppState?.activeProgressGuide @@ -89,9 +87,6 @@ export function Provider({children}: React.PropsWithChildren<{}>) { const controls = React.useMemo(() => { return { startProgressGuide(guide: ProgressGuideName) { - if (!gate('new_user_progress_guide')) { - return - } if (guide === 'like-10-and-follow-7') { const guideObj = { guide: 'like-10-and-follow-7', @@ -148,7 +143,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) { mutateAsync(guide?.isComplete ? undefined : guide) }, } - }, [activeProgressGuide, mutateAsync, gate, setLocalGuideState]) + }, [activeProgressGuide, mutateAsync, setLocalGuideState]) return ( <ProgressGuideContext.Provider value={localGuideState}> |