fix: route PendingGiftCard to gift activation tab instead of landing endpoint

PendingGiftCard was linking to /buy/success/:token which uses the landing
API (exact token match). Since gift tokens are now truncated to 12 chars
in API responses, this caused 404s. Route to /gift?tab=activate&code=
which uses the gift API with prefix-based lookup.
This commit is contained in:
Fringg
2026-03-10 07:08:13 +03:00
parent 51cc1221d0
commit 8ab740f8cb

View File

@@ -67,7 +67,7 @@ export default function PendingGiftCard({ gifts, className }: PendingGiftCardPro
{/* Activate button */}
<Link
to={`/buy/success/${gift.token}?activate=1`}
to={`/gift?tab=activate&code=${gift.token}`}
className="shrink-0 rounded-xl bg-accent-500 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-accent-400"
>
{t('gift.pending.activate')}