We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5f5c1 commit 54ad21cCopy full SHA for 54ad21c
apps/namadillo/src/hooks/useTransactionWatcher.tsx
@@ -28,8 +28,16 @@ export const useTransactionWatcher = (): void => {
28
case "TransparentToShielded":
29
case "ShieldedToTransparent":
30
case "ShieldedToShielded": {
31
- const newTx = await handleStandardTransfer(tx, fetchTransaction);
32
- dispatchTransferEvent(transactionTypeToEventName(tx), newTx);
+ try {
+ const newTx = await handleStandardTransfer(tx, fetchTransaction);
33
+ dispatchTransferEvent(transactionTypeToEventName(tx), newTx);
34
+ } catch (error: unknown) {
35
+ console.warn("Transaction fetch failed (likely pruned):", error);
36
+ dispatchTransferEvent(transactionTypeToEventName(tx), {
37
+ ...tx,
38
+ status: "error",
39
+ });
40
+ }
41
break;
42
}
43
0 commit comments