Skip to content

Commit 8d3f210

Browse files
committed
fixup
1 parent fee1f46 commit 8d3f210

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/keyring-controller/src/KeyringController.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2869,7 +2869,11 @@ export class KeyringController extends BaseController<
28692869
this.#password = currentPassword;
28702870

28712871
this.update((state) => {
2872-
state.encryptedEncryptionKey = currentEncryptedEncryptionKey;
2872+
if (currentEncryptedEncryptionKey !== undefined) {
2873+
state.encryptedEncryptionKey = currentEncryptedEncryptionKey;
2874+
} else {
2875+
delete state.encryptedEncryptionKey;
2876+
}
28732877
});
28742878

28752879
await this.#restoreSerializedKeyrings(currentSerializedKeyrings);

0 commit comments

Comments
 (0)