Skip to content
Snippets Groups Projects

Forgetting credentials shows error in the console but works

Merged Alexey Lunin requested to merge 448-forgetting-credentials-shows-error into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -1277,7 +1277,7 @@ connection.promise.then(parent => {
if (!pinCode) {
if (!identityLoadedEvent) {
const result = await loadIdentityInternal(window.currentlyLoadedIdentity.authentication.publicKey, "00000000");
if (result.code !== "200") {
if (window.currentlyLoadedIdentity && result.code !== "200") {
const event = createEvent("CanNotLoadPincodeForLoadedIdentity", "IdentityNotLoaded", [window.currentlyLoadedIdentity.authentication.publicKey]);
parent.onEvent(event);
identityLoadedEvent = true;
Loading