diff --git a/frontend/src/features/vault/hooks/useExport.ts b/frontend/src/features/vault/hooks/useExport.ts index 6c294c0..b998be9 100644 --- a/frontend/src/features/vault/hooks/useExport.ts +++ b/frontend/src/features/vault/hooks/useExport.ts @@ -148,7 +148,7 @@ export function useExport(): UseExportReturn { */ const exportVault = useCallback(async (password: string, format: ExportFormat) => { // Validate inputs - if (!password || password.trim() === '') { + if (!password || password.trim().length === 0) { setError('Password is required'); setPhase('ERROR'); return; 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/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