refactor: clean up $getActiveIdentity method and fix null handling

- Remove excessive debug logging statements
- Fix critical bug: cast activeDid as string | null instead of string
- Refactor to use early return pattern, reducing nesting from 4 to 2-3 levels
- Eliminate redundant logic and improve code readability
- Maintain all original functionality while simplifying flow
- Fix null activeDid case that was breaking app initialization
This commit is contained in:
Matthew Raymer
2025-09-11 06:14:07 +00:00
parent 8eb4ad5c74
commit cf854d5054
2 changed files with 36 additions and 107 deletions

View File

@@ -118,6 +118,7 @@ onNumNewOffersToUserChange(newValue: number, oldValue: number) {
**Status**: 23 components successfully migrated. 11 components remaining. API layer ready for systematic updates.
### Phase 4: Testing 🟡 PARTIALLY STARTED
- [x] Test Web platform (verified working)
- [ ] Test Electron platform
- [ ] Test iOS platform