From 2017629bd475995f6513789328bf2922466fb2b8 Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 25 Jul 2025 12:58:42 -0700 Subject: [PATCH] make sure request is fetched before returning true --- src/state/ageAssurance/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/state/ageAssurance/index.tsx b/src/state/ageAssurance/index.tsx index 6cdd8d9299..bc5c980712 100644 --- a/src/state/ageAssurance/index.tsx +++ b/src/state/ageAssurance/index.tsx @@ -101,7 +101,8 @@ export function Provider({children}: {children: React.ReactNode}) { isReady: isFetched || !isAgeAssuranceEnabled, status, lastInitiatedAt, - isAgeRestricted: isAgeAssuranceEnabled ? status !== 'assured' : false, + isAgeRestricted: + isFetched && isAgeAssuranceEnabled ? status !== 'assured' : false, } logger.debug(`context`, ctx) return ctx