make sure request is fetched before returning true
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user