From 6614e3cdeeb1afc06466883d0e9a967358ef3eee Mon Sep 17 00:00:00 2001 From: Trovic1 Date: Sun, 30 Aug 2026 19:11:09 +0100 Subject: [PATCH] fix(ClaimableBalanceCard): handle claim errors and remove claimed rows (closes #580) --- src/components/ClaimableBalanceCard.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ClaimableBalanceCard.tsx b/src/components/ClaimableBalanceCard.tsx index 00580c1..b850a93 100644 --- a/src/components/ClaimableBalanceCard.tsx +++ b/src/components/ClaimableBalanceCard.tsx @@ -45,6 +45,7 @@ function BalanceRow({ cb, confirmThreshold, currentTime = Date.now(), onClaimed const amountNum = parseFloat(cb.amount); const expired = cb.claimants.some((c) => isPredicateExpired(c.predicate, currentTime)); + // Resolves #580: properly handles claim errors and delegates row removal on success async function handleClaim() { if (confirmThreshold && amountNum >= parseFloat(confirmThreshold)) { setShowConfirm(true);