mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
Update Login.tsx
This commit is contained in:
@@ -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]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user