mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
fix: activation broken — token uppercased + wrong env var for bot username
- Remove .toUpperCase() from activation code input — tokens are case-sensitive base64 - Fix VITE_BOT_USERNAME → VITE_TELEGRAM_BOT_USERNAME (correct env var name) - Add Escape key handler, scroll lock, role="dialog" to ShareModal
This commit is contained in:
@@ -57,7 +57,7 @@ function CodeOnlySuccessState({
|
||||
const [copied, setCopied] = useState(false);
|
||||
|
||||
const giftCode = formatGiftCode(purchaseToken);
|
||||
const botUsername = import.meta.env.VITE_BOT_USERNAME as string | undefined;
|
||||
const botUsername = import.meta.env.VITE_TELEGRAM_BOT_USERNAME as string | undefined;
|
||||
const botLink = botUsername
|
||||
? `https://t.me/${botUsername}?start=GIFTCODE_${purchaseToken}`
|
||||
: null;
|
||||
|
||||
Reference in New Issue
Block a user