From 777a13c29260282d0e50848b773857cc79e324fa Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Wed, 5 Aug 2026 17:49:16 +0530 Subject: [PATCH] fix: resolve 4 bugs in AccountSafe --- frontend/src/features/vault/hooks/useSmartImport.ts | 2 ++ frontend/src/pages/ForgotPasswordPage.tsx | 2 +- frontend/src/utils/encryption.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/features/vault/hooks/useSmartImport.ts b/frontend/src/features/vault/hooks/useSmartImport.ts index 467f630..16565ef 100644 --- a/frontend/src/features/vault/hooks/useSmartImport.ts +++ b/frontend/src/features/vault/hooks/useSmartImport.ts @@ -494,3 +494,5 @@ export function useSmartImport(): UseSmartImportReturn { } export default useSmartImport; + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file diff --git a/frontend/src/pages/ForgotPasswordPage.tsx b/frontend/src/pages/ForgotPasswordPage.tsx index 0b38b87..1c7894b 100644 --- a/frontend/src/pages/ForgotPasswordPage.tsx +++ b/frontend/src/pages/ForgotPasswordPage.tsx @@ -164,7 +164,7 @@ const ForgotPasswordPage: React.FC = () => { if (window.turnstile) { renderWidget(); - return undefined; + return; } else { const interval = setInterval(() => { if (window.turnstile) { diff --git a/frontend/src/utils/encryption.ts b/frontend/src/utils/encryption.ts index 9cd0d47..09e2313 100644 --- a/frontend/src/utils/encryption.ts +++ b/frontend/src/utils/encryption.ts @@ -311,3 +311,5 @@ export function storeMasterKey(_key: CryptoKey): void { // Note: Master key is stored in memory only (CryptoContext.tsx) } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file