From 2977f1aec6bb8fd72d36fa06e890b1c962aaf803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=BBuraw?= <9116238+krzysztofzuraw@users.noreply.github.com> Date: Tue, 7 Oct 2025 09:10:01 +0200 Subject: [PATCH] Show last used bagde only if there are more than one login method --- src/auth/components/LoginPage/LoginPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/auth/components/LoginPage/LoginPage.tsx b/src/auth/components/LoginPage/LoginPage.tsx index 473fd8dd66b..14df8302972 100644 --- a/src/auth/components/LoginPage/LoginPage.tsx +++ b/src/auth/components/LoginPage/LoginPage.tsx @@ -42,6 +42,8 @@ const LoginPage = (props: LoginCardProps) => { const intl = useIntl(); const [showPassword, setShowPassword] = useState(false); const [optimisticLoaderAuthId, setOptimisticLoaderAuthId] = useState(null); + const showLastLoginIndicatorForPassword = + lastLoginMethod === "password" && externalAuthentications.length > 0; return ( @@ -126,7 +128,7 @@ const LoginPage = (props: LoginCardProps) => { data-test-id="submit" position="relative" > - {lastLoginMethod === "password" && } + {showLastLoginIndicatorForPassword && }