An easy-to-host PDS on the ATProtocol, iPhone and MacOS. Maintain control of your keys and data, always.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: address Phase 4 code review feedback

- Remove unused 'type ClaimResult' import from RecoveryOverrideScreen
- Remove unused 'result' variable in handleSubmit function
- Remove unreachable default branches in both switch statements

The switch statements exhaustively handle all 6 RecoveryError code variants,
making the default branches unreachable and causing TypeScript errors.

+1 -6
+1 -6
apps/identity-wallet/src/lib/components/home/RecoveryOverrideScreen.svelte
··· 5 5 submitRecoveryOverride, 6 6 type SignedRecoveryOp, 7 7 type RecoveryError, 8 - type ClaimResult, 9 8 } from '$lib/ipc'; 10 9 import { getDeadline, formatCountdown, getUrgency } from '$lib/utils/deadline'; 11 10 import { isCodedError, truncateDid } from '$lib/did-doc-utils'; ··· 70 69 case 'NETWORK_ERROR': 71 70 error = `Network error: ${err.message || 'unknown error'}`; 72 71 break; 73 - default: 74 - error = `Operation build failed (${err.code}). Please try again.`; 75 72 } 76 73 } else { 77 74 error = 'Failed to build recovery operation. Please try again.'; ··· 90 87 error = null; 91 88 92 89 try { 93 - const result = await submitRecoveryOverride(did); 90 + await submitRecoveryOverride(did); 94 91 onsuccess(); 95 92 } catch (raw: unknown) { 96 93 console.error('Recovery submission failed:', raw); ··· 116 113 case 'UNAUTHORIZED_CHANGE_NOT_FOUND': 117 114 error = 'Unauthorized change not found in audit log.'; 118 115 break; 119 - default: 120 - error = `Submission failed (${err.code}). Please try again.`; 121 116 } 122 117 } else { 123 118 error = 'Submission failed. Please try again.';