If birth date is not set, ensure AA still shows (#8709)
(cherry picked from commit 3775aeb146)
This commit is contained in:
@@ -28,7 +28,8 @@ export function useAgeAssurance(): AgeAssurance {
|
||||
|
||||
return useMemo(() => {
|
||||
const isReady = aa.isReady && preferencesLoaded
|
||||
const isDeclaredUnderage = (declaredAge || 0) < 18
|
||||
const isDeclaredUnderage =
|
||||
declaredAge !== undefined ? declaredAge < 18 : false
|
||||
const state: AgeAssurance = {
|
||||
isReady,
|
||||
status: aa.status,
|
||||
|
||||
Reference in New Issue
Block a user