update ref
This commit is contained in:
@@ -13,7 +13,7 @@ import * as z from 'zod'
|
||||
|
||||
export default function RegisterForm() {
|
||||
const searchParams = useSearchParams();
|
||||
const referralCode = searchParams.get('referralCode');
|
||||
const referralCode = searchParams.get('ref');
|
||||
|
||||
const [state, formAction, isPending] = useActionState(
|
||||
registration,
|
||||
@@ -41,10 +41,6 @@ export default function RegisterForm() {
|
||||
|
||||
}, [state])
|
||||
|
||||
useEffect(() => {
|
||||
console.log(referralCode);
|
||||
}, [referralCode]);
|
||||
|
||||
function showPassowrd(target: 'password' | 'confirm-password') {
|
||||
if (target === 'password') {
|
||||
setShowPassword(!showPassword);
|
||||
|
||||
Reference in New Issue
Block a user