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:
Fringg
2026-03-10 06:13:50 +03:00
parent 1bafcca1ef
commit d852bfe969
2 changed files with 25 additions and 7 deletions

View File

@@ -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;