refactor: rename GIFTCODE_ start parameter prefix to GIFT_

This commit is contained in:
Fringg
2026-03-10 06:48:57 +03:00
parent 7549ae70eb
commit 7945071893
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ function CodeOnlySuccessState({
const shortCode = purchaseToken.slice(0, 12);
const giftCode = `GIFT-${shortCode}`;
const botUsername = import.meta.env.VITE_TELEGRAM_BOT_USERNAME as string | undefined;
const botLink = botUsername ? `https://t.me/${botUsername}?start=GIFTCODE_${shortCode}` : null;
const botLink = botUsername ? `https://t.me/${botUsername}?start=GIFT_${shortCode}` : null;
const cabinetLink = `${window.location.origin}/gift?tab=activate&code=${shortCode}`;
const fullMessage = [

View File

@@ -988,7 +988,7 @@ function ShareModal({ gift, onClose }: { gift: SentGift; onClose: () => void })
const shortCode = gift.token.slice(0, 12);
const botUsername = import.meta.env.VITE_TELEGRAM_BOT_USERNAME as string | undefined;
const botLink = botUsername ? `https://t.me/${botUsername}?start=GIFTCODE_${shortCode}` : null;
const botLink = botUsername ? `https://t.me/${botUsername}?start=GIFT_${shortCode}` : null;
const cabinetLink = `${window.location.origin}/gift?tab=activate&code=${shortCode}`;
const fullMessage = [