diff --git a/src/components/privacy-policy-modal.jsx b/src/components/privacy-policy-modal.jsx index b62fa93..5ed681d 100644 --- a/src/components/privacy-policy-modal.jsx +++ b/src/components/privacy-policy-modal.jsx @@ -1,3 +1,5 @@ +"use client"; + import React from 'react' import { Dialog, @@ -10,10 +12,15 @@ import { import { ScrollArea } from "@/components/ui/scroll-area" export function PrivacyPolicyModal() { + React.useEffect(() => { + if (window.location.hash === '#privacy') { + document.getElementById('privacy-trigger').click(); + } + }, []); return ( - +