From c950249d15e207ff4117be5c5299265b0efe43e1 Mon Sep 17 00:00:00 2001 From: maximus Date: Mon, 3 Aug 2026 21:44:28 +0200 Subject: [PATCH] correction qa --- src/hooks/useLoginFlow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useLoginFlow.ts b/src/hooks/useLoginFlow.ts index a594917..b02e615 100644 --- a/src/hooks/useLoginFlow.ts +++ b/src/hooks/useLoginFlow.ts @@ -63,7 +63,7 @@ export const useLoginFlow = (onLoginSuccess: () => void) => { } else { onLoginSuccess(); } - } catch (err) { + } catch { setError("Identifiants incorrects ou accès révoqué."); pb.authStore.clear(); } finally { @@ -97,7 +97,7 @@ export const useLoginFlow = (onLoginSuccess: () => void) => { } else { setError("Code de sécurité invalide ou expiré."); } - } catch (err) { + } catch { setError("Erreur critique lors de la vérification."); } finally { setIsLoading(false);