From 8ab740f8cb6ed9654b5f2d7d99d7f37a31e7de90 Mon Sep 17 00:00:00 2001 From: Fringg Date: Tue, 10 Mar 2026 07:08:13 +0300 Subject: [PATCH] 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. --- src/components/dashboard/PendingGiftCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dashboard/PendingGiftCard.tsx b/src/components/dashboard/PendingGiftCard.tsx index 85240ad..c3d8691 100644 --- a/src/components/dashboard/PendingGiftCard.tsx +++ b/src/components/dashboard/PendingGiftCard.tsx @@ -67,7 +67,7 @@ export default function PendingGiftCard({ gifts, className }: PendingGiftCardPro {/* Activate button */} {t('gift.pending.activate')}