diff --git a/apps/user/app/auth/page.tsx b/apps/user/app/auth/page.tsx index 0ace426..7411fbb 100644 --- a/apps/user/app/auth/page.tsx +++ b/apps/user/app/auth/page.tsx @@ -21,7 +21,9 @@ export default function Page() {
- logo + {site.site_logo && ( + logo + )} {site.site_name} >({ resolver: zodResolver(formSchema), defaultValues: { ...initialValues, - invite: sessionStorage.getItem('invite'), + invite: localStorage.getItem('invite') || '', }, }); @@ -159,7 +160,7 @@ export default function UserRegisterForm({ { + const searchParams = new URLSearchParams(location.search); + const invite = searchParams.get('invite'); + if (invite) { + localStorage.setItem('invite', invite); + } + }, []); + return ( diff --git a/bun.lockb b/bun.lockb index 31e39bc..af8cf86 100755 Binary files a/bun.lockb and b/bun.lockb differ