diff options
author | Eric Bailey <git@esb.lol> | 2025-07-23 14:32:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-23 14:32:19 -0500 |
commit | 3ae3ed245bad12c2222ea04a9bf13ba4589e90ad (patch) | |
tree | 792013d3cafa0d4226bb6f97ba98bf9914889c83 /src/state/ageAssurance/index.tsx | |
parent | 8fdcc3ee31aefae91ce5552c3aa74bfb867893ac (diff) | |
download | voidsky-3ae3ed245bad12c2222ea04a9bf13ba4589e90ad.tar.zst |
Clean up AA gate (#8707)
Diffstat (limited to 'src/state/ageAssurance/index.tsx')
-rw-r--r-- | src/state/ageAssurance/index.tsx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/state/ageAssurance/index.tsx b/src/state/ageAssurance/index.tsx index 3451b1139..6cdd8d929 100644 --- a/src/state/ageAssurance/index.tsx +++ b/src/state/ageAssurance/index.tsx @@ -4,7 +4,6 @@ import {useQuery} from '@tanstack/react-query' import {networkRetry} from '#/lib/async/retry' import {useGetAndRegisterPushToken} from '#/lib/notifications/notifications' -import {useGate} from '#/lib/statsig/statsig' import {isNetworkError} from '#/lib/strings/errors' import { type AgeAssuranceAPIContextType, @@ -41,7 +40,6 @@ const AgeAssuranceAPIContext = createContext<AgeAssuranceAPIContextType>({ * performance. */ export function Provider({children}: {children: React.ReactNode}) { - const gate = useGate() const agent = useAgent() const {geolocation} = useGeolocation() const isAgeAssuranceEnabled = useIsAgeAssuranceEnabled() @@ -78,12 +76,10 @@ export function Provider({children}: {children: React.ReactNode}) { account: agent.session?.did, }) - if (gate('age_assurance')) { - await getAndRegisterPushToken({ - isAgeRestricted: - !!geolocation?.isAgeRestrictedGeo && data.status !== 'assured', - }) - } + await getAndRegisterPushToken({ + isAgeRestricted: + !!geolocation?.isAgeRestrictedGeo && data.status !== 'assured', + }) return data } catch (e) { |