Skip to content

Commit

Permalink
feat(enclave): additional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ditoglez committed Dec 16, 2024
1 parent 468b9ab commit 236c029
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/idos-enclave/src/lib/enclave.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ export class Enclave {
this.unlockButton.disabled = false;
this.confirmButton.disabled = false;
this.backupButton.disabled = false;
port1.close();
this.dialog.close();
return reject(error);
}

Expand Down
5 changes: 5 additions & 0 deletions apps/idos-enclave/src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ export function App({ store, enclave }: AppProps) {
}
}, [theme]);

useEffect(() => {
if (mode === "new" || !responsePort.current) return;
if (!encryptionPublicKey) onError("Can’t find a public encryption key for this user");
}, [mode, encryptionPublicKey, responsePort.current]);

const resetMethod = useCallback(() => setMethod(null), []);

/**
Expand Down

0 comments on commit 236c029

Please sign in to comment.