mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
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:
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user