mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-09-13 16:23:08 +00:00
now able to pass username | email in params
This commit is contained in:
@@ -870,7 +870,8 @@ export default function QuickPurchase() {
|
|||||||
const contactKey = `lp_contact_${slug ?? ''}`;
|
const contactKey = `lp_contact_${slug ?? ''}`;
|
||||||
const [contactValue, setContactValue] = useState(() => {
|
const [contactValue, setContactValue] = useState(() => {
|
||||||
try {
|
try {
|
||||||
return localStorage.getItem(contactKey) || '';
|
const urlContact = new URLSearchParams(window.location.search).get('contact');
|
||||||
|
return urlContact || localStorage.getItem(contactKey) || '';
|
||||||
} catch {
|
} catch {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user