Skip to content

Commit

Permalink
fix: silencing malformed utf-8 error when password is incorrect. Clea…
Browse files Browse the repository at this point in the history
…r console when components refresh
  • Loading branch information
alifeinbinary committed Oct 10, 2024
1 parent b48bbc4 commit 01329c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/DebugConsole.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ const DebugConsole = () => {

// Keeping it fresh in the console
useEffect(() => {
// if (!DEBUG) {
// console.clear();
// }
if (!DEBUG) {
console.clear();
}

// Debug console
const items = {
Expand Down
3 changes: 2 additions & 1 deletion src/utils/encryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function handleDecrypt(
decryptionSuccessful = true;
}
} catch (error) {
throw new Error(`Error decrypting: ${error}`);
console.debug(error);
// throw new Error(`Error decrypting: ${error}`);
}

// Only update the UI if decryption was successful
Expand Down

0 comments on commit 01329c7

Please sign in to comment.