From eae1a382d5094c14c801e65665c2fe0a8ccf0f52 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sun, 14 Jun 2026 00:41:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9(frontend)=20fix=20options=20unwrap?= =?UTF-8?q?ping=20when=20silent=20login=20is=20disabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The options were not properly unwrapped when silent login was disabled, leading to incorrect behavior in that code path. --- src/frontend/src/features/auth/api/useUser.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/features/auth/api/useUser.tsx b/src/frontend/src/features/auth/api/useUser.tsx index 7ff90791..c2fd7211 100644 --- a/src/frontend/src/features/auth/api/useUser.tsx +++ b/src/frontend/src/features/auth/api/useUser.tsx @@ -37,7 +37,7 @@ export const useUser = ( if (silentDisabled) { return { - ...opts, + ...opts.fetchUserOptions, attemptSilent: false, } }