Description
src/hooks/useBlockchainSync.ts (line ~16) has a try block in syncRecord with no corresponding catch — an exception during sync propagates uncaught instead of setting an error state the UI can display.
Current State
syncRecord's try block has no catch clause
What Needs to Be Fixed / Built
- Add a catch clause that sets an error state on the hook
- Ensure consumers of this hook (e.g.
BlockchainSyncStatus.tsx) render that error state
Acceptance Criteria
Files to Modify
src/hooks/useBlockchainSync.ts
Priority
Medium-High — silent sync failures mean records may never get anchored without anyone noticing
Estimated Effort
0.5 day
Description
src/hooks/useBlockchainSync.ts(line ~16) has a try block insyncRecordwith no corresponding catch — an exception during sync propagates uncaught instead of setting an error state the UI can display.Current State
syncRecord's try block has no catch clauseWhat Needs to Be Fixed / Built
BlockchainSyncStatus.tsx) render that error stateAcceptance Criteria
useBlockchainSyncunit test issueFiles to Modify
src/hooks/useBlockchainSync.tsPriority
Medium-High — silent sync failures mean records may never get anchored without anyone noticing
Estimated Effort
0.5 day