Skip to content

Commit

Permalink
Fix sanitizeUIState with in property checks
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Dec 5, 2024
1 parent 6b36258 commit 4c9f32c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/scripts/lib/state-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ export function sanitizeUIState(

for (const key of REMOVE_KEYS) {
if (key === 'vault') {
delete newState.KeyringController[key];
} else {
if (key in newState.KeyringController) {
delete newState.KeyringController[key];
}
} else if (key in newState.SnapController) {
delete newState.SnapController[key];
}
}
Expand Down

0 comments on commit 4c9f32c

Please sign in to comment.