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:
@@ -39,7 +39,6 @@ GOOGLE_STATIC_MAP_ID=""
|
||||
GOOGLE_DYNAMIC_MAP_ID=""
|
||||
|
||||
ENABLE_SURPRISES="true"
|
||||
ENABLE_DTMC="true"
|
||||
|
||||
SAS_POINT_TRANSFER_ENABLED="true"
|
||||
SAS_API_ENDPOINT=""
|
||||
|
||||
@@ -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