fix public web

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-13 12:02:16 +01:00
parent b6f38451df
commit c1a6c0a191
2 changed files with 3 additions and 3 deletions

View File

@@ -25,14 +25,14 @@ export function JoinWaitlistHero({ className }: JoinWaitlistProps) {
useEffect(() => {
if (open) {
// @ts-ignore
window.openpanel.event('waitlist_open');
window.op('event', 'waitlist_open');
}
}, [open]);
useEffect(() => {
if (success) {
// @ts-ignore
window.openpanel.event('waitlist_success', {
window.op('event', 'waitlist_success', {
email: value,
});
}

View File

@@ -23,7 +23,7 @@ export function JoinWaitlist({ className }: JoinWaitlistProps) {
useEffect(() => {
if (open) {
// @ts-ignore
window.openpanel.event('waitlist_success');
window.op('event', 'waitlist_success');
}
}, [open]);