now able to pass username | email in params

This commit is contained in:
Aleksandr
2026-08-17 23:18:48 +03:00
parent b866bebeeb
commit cb309ead51

View File

@@ -870,7 +870,8 @@ export default function QuickPurchase() {
const contactKey = `lp_contact_${slug ?? ''}`;
const [contactValue, setContactValue] = useState(() => {
try {
return localStorage.getItem(contactKey) || '';
const urlContact = new URLSearchParams(window.location.search).get('contact');
return urlContact || localStorage.getItem(contactKey) || '';
} catch {
return '';
}