Skip to content

Commit

Permalink
Display consent button if privacyPolicyLink is filled
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Oct 10, 2023
1 parent afeb76a commit 1e60e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Layout/useExternalScripts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const useExternalsScripts = (executeOnLoad = false) => {
}, [executeOnLoad, locale, privacyPolicyLink]);

return {
needsConsent,
needsConsent: needsConsent && Boolean(privacyPolicyLink),
scriptsHeader,
scriptsFooter,
triggerConsentModal,
Expand Down

0 comments on commit 1e60e54

Please sign in to comment.