Update Login.tsx

This commit is contained in:
Egor
2026-01-28 20:25:51 +03:00
committed by GitHub
parent b178f4cb86
commit 2842aa962d

View File

@@ -89,7 +89,7 @@ export default function Login() {
// If email auth is disabled but user came with ref param, redirect to bot // If email auth is disabled but user came with ref param, redirect to bot
useEffect(() => { useEffect(() => {
if (referralCode && emailAuthConfig?.enabled === false && botUsername) { if (referralCode && emailAuthConfig?.enabled === false && botUsername) {
window.location.href = `https://t.me/${botUsername}?start=ref_${referralCode}`; window.location.href = `https://t.me/${botUsername}?start=${referralCode}`;
} }
}, [referralCode, emailAuthConfig, botUsername]); }, [referralCode, emailAuthConfig, botUsername]);