From eccf67961b250f61515436fe457fb66709630459 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 4 May 2026 07:45:37 +0000 Subject: [PATCH] fix(card-deposit): drop Onchain badge from card-deposit error toasts The default toast badge text is 'Onchain', which is misleading on the 'Deposits not available' / 'External deposits not available' errors that fire from card-deposit forms. Pass an empty badgeText so no badge is rendered for these toasts. --- components/Card/CardDepositExternalForm.tsx | 1 + components/Card/CardDepositInternalForm.tsx | 2 ++ hooks/useCardDeposit.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/components/Card/CardDepositExternalForm.tsx b/components/Card/CardDepositExternalForm.tsx index 7c8a82b66..82ff6896e 100644 --- a/components/Card/CardDepositExternalForm.tsx +++ b/components/Card/CardDepositExternalForm.tsx @@ -158,6 +158,7 @@ export default function CardDepositExternalForm() { type: 'error', text1: 'External deposits not available', text2: 'This card does not support deposits from external wallet', + props: { badgeText: '' }, }); return; } diff --git a/components/Card/CardDepositInternalForm.tsx b/components/Card/CardDepositInternalForm.tsx index a98f12e0c..d231e027e 100644 --- a/components/Card/CardDepositInternalForm.tsx +++ b/components/Card/CardDepositInternalForm.tsx @@ -928,6 +928,7 @@ export default function CardDepositInternalForm() { type: 'error', text1: 'Deposits not available', text2: 'This card does not support deposits to the funding chain', + props: { badgeText: '' }, }); return; } @@ -1054,6 +1055,7 @@ export default function CardDepositInternalForm() { type: 'error', text1: 'Deposits not available', text2: 'This card does not support deposits to the funding chain', + props: { badgeText: '' }, }); return; } diff --git a/hooks/useCardDeposit.ts b/hooks/useCardDeposit.ts index 1f793055e..7203c21c5 100644 --- a/hooks/useCardDeposit.ts +++ b/hooks/useCardDeposit.ts @@ -76,6 +76,7 @@ const useCardDeposit = (): CardDepositResult => { type: 'error', text1: 'Deposits not available', text2: 'This card does not support deposits', + props: { badgeText: '' }, }); return; }