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,
|
isReady: isFetched || !isAgeAssuranceEnabled,
|
||||||
status,
|
status,
|
||||||
lastInitiatedAt,
|
lastInitiatedAt,
|
||||||
isAgeRestricted: isAgeAssuranceEnabled ? status !== 'assured' : false,
|
isAgeRestricted:
|
||||||
|
isFetched && isAgeAssuranceEnabled ? status !== 'assured' : false,
|
||||||
}
|
}
|
||||||
logger.debug(`context`, ctx)
|
logger.debug(`context`, ctx)
|
||||||
return ctx
|
return ctx
|
||||||
|
|||||||
Reference in New Issue
Block a user