Merged in fix/handle-unpublished-profiling-consent (pull request #3275)
fix: handle unpublished profiling consent * fix: handle unpublished profiling consent Approved-by: Emma Zettervall Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -12,7 +12,7 @@ export async function ProfilingConsentBanner() {
|
||||
if (!user || userHasConsent(user?.profilingConsent)) return null
|
||||
|
||||
const data = await getProfilingConsent()
|
||||
if (!data) return null
|
||||
if (!data?.profiling_consent) return null
|
||||
|
||||
const { icon, banner } = data.profiling_consent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user