diff --git a/app/scripts/lib/state-utils.ts b/app/scripts/lib/state-utils.ts index 2a829b038a73..5111af7f87c4 100644 --- a/app/scripts/lib/state-utils.ts +++ b/app/scripts/lib/state-utils.ts @@ -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]; } }