From 6a8a2143ec644933a64cea8b98e06b826c8f218b Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 4 Dec 2025 13:03:11 -0600 Subject: [PATCH] Small fix to bday handling --- src/ageAssurance/components/NoAccessScreen.tsx | 8 +++++--- src/ageAssurance/data.tsx | 8 ++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/ageAssurance/components/NoAccessScreen.tsx b/src/ageAssurance/components/NoAccessScreen.tsx index 0becba529c..3b4f7d7088 100644 --- a/src/ageAssurance/components/NoAccessScreen.tsx +++ b/src/ageAssurance/components/NoAccessScreen.tsx @@ -54,6 +54,8 @@ export function NoAccessScreen() { const {logoutCurrentAccount} = useSessionApi() const createSupportLink = useCreateSupportLink() + const aa = useAgeAssurance() + const isBlocked = aa.state.status === aa.Status.Blocked const isAARegion = !!region const hasDeclaredAge = data?.declaredAge !== undefined const canUpdateBirthday = @@ -79,7 +81,7 @@ export function NoAccessScreen() { const birthdateUpdateText = canUpdateBirthday ? ( - If your birthdate is not accurate, you can update it by{' '} + If you believe your birthdate is incorrect, you can update it by{' '} - If you accidentally typed an incorrect birthdate, please{' '} + If you believe your birthdate is incorrect, please{' '} - {birthdateUpdateText} + {!isBlocked && birthdateUpdateText} diff --git a/src/ageAssurance/data.tsx b/src/ageAssurance/data.tsx index e60c495e8f..24619890c8 100644 --- a/src/ageAssurance/data.tsx +++ b/src/ageAssurance/data.tsx @@ -19,7 +19,7 @@ import {snoozeBirthdateUpdateAllowedForDid} from '#/state/birthdate' import {useAgent, useSession} from '#/state/session' import * as debug from '#/ageAssurance/debug' import {logger} from '#/ageAssurance/logger' -import {isLegacyBirthdateBug, isUserUnderMinimumAge} from '#/ageAssurance/util' +import {isLegacyBirthdateBug} from '#/ageAssurance/util' import {IS_DEV} from '#/env' import {device} from '#/storage' @@ -334,11 +334,7 @@ export async function getOtherRequiredData({ * If the user is under the minimum age, and the birthdate is not due to * the legacy bug, snooze further birthdate updates for this user. */ - if ( - data.birthdate && - isUserUnderMinimumAge(data.birthdate) && - !isLegacyBirthdateBug(data.birthdate) - ) { + if (data.birthdate && !isLegacyBirthdateBug(data.birthdate)) { snoozeBirthdateUpdateAllowedForDid(did!) }