From fbd2902c85ce21799791c32f404e7ab8524a0a53 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Wed, 5 Aug 2026 17:59:23 +0530 Subject: [PATCH] fix: resolve 4 bugs in AccountSafe --- frontend/src/pages/ForgotPasswordPage.tsx | 2 +- frontend/src/types/error.types.ts | 2 +- frontend/src/utils/encryption.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) 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/types/error.types.ts b/frontend/src/types/error.types.ts index a913702..bd460c5 100644 --- a/frontend/src/types/error.types.ts +++ b/frontend/src/types/error.types.ts @@ -33,7 +33,7 @@ export function isAxiosError( typeof error === 'object' && error !== null && 'isAxiosError' in error && - (error as AxiosError).isAxiosError === true + (error as AxiosError).isAxiosError ); } 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