isUnderage -> isDeclaredUnderage

This commit is contained in:
Eric Bailey
2025-07-15 17:08:19 -05:00
parent 6ac8b47b57
commit 97a056fbeb
5 changed files with 13 additions and 12 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ const logger = Logger.create(Logger.Context.AgeAssurance)
type AgeAssurance = {
isReady: boolean
declaredAge: number | undefined
isUnderage: boolean
isDeclaredUnderage: boolean
isAgeRestricted: boolean
assurance: ReturnType<typeof useAgeAssuranceContext>
}
@@ -29,11 +29,11 @@ export function useAgeAssurance(): AgeAssurance {
return useMemo(() => {
const isReady = ctx.isReady && preferencesLoaded
const isUnderage = (declaredAge || 0) < 18
const isDeclaredUnderage = (declaredAge || 0) < 18
const state: AgeAssurance = {
isReady,
declaredAge,
isUnderage,
isDeclaredUnderage,
isAgeRestricted,
assurance: ctx,