Skip to content

Commit

Permalink
chore: prefill email on signup
Browse files Browse the repository at this point in the history
  • Loading branch information
apotdevin committed Dec 17, 2024
1 parent 2a1e0e5 commit 74b6861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/form/SignUpForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export function SignUpForm() {

const searchParams = useSearchParams();
const referralParam = searchParams.get('referral');
const emailParam = searchParams.get('email');

const { toast } = useToast();

Expand All @@ -45,7 +46,7 @@ export function SignUpForm() {
const [loading, setLoading] = useState(true);
const [showPassword, setShowPassword] = useState(false);

const [email, setEmail] = useState('');
const [email, setEmail] = useState(emailParam || '');
const [referralCode, setReferralCode] = useState(referralParam || '');
const [password, setPassword] = useState('');
const [confirmPassword, setConfirmPassword] = useState('');
Expand Down

0 comments on commit 74b6861

Please sign in to comment.