From 46b8018af3c118db0ceea50100a272c18d727f5d Mon Sep 17 00:00:00 2001 From: 7w1 Date: Sat, 25 Jul 2026 17:10:13 -0500 Subject: [PATCH] lint --- src/app/features/settings/devices/OtherDevices.tsx | 4 ++-- src/app/pages/auth/login/Login.tsx | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/features/settings/devices/OtherDevices.tsx b/src/app/features/settings/devices/OtherDevices.tsx index 78877a492..245ba333e 100644 --- a/src/app/features/settings/devices/OtherDevices.tsx +++ b/src/app/features/settings/devices/OtherDevices.tsx @@ -76,7 +76,7 @@ export function OtherDevices({ devices, refreshDeviceList, showVerification }: O return; } window.open(url, '_blank'); - }, [authMetadata, accountManagementActions]); + }, [authMetadata, accountManagementActions, mx]); const handleDeleteOIDC = useCallback( (deviceId: string) => { @@ -95,7 +95,7 @@ export function OtherDevices({ devices, refreshDeviceList, showVerification }: O } window.open(url, '_blank'); }, - [authMetadata, accountManagementActions] + [authMetadata, accountManagementActions, mx] ); const handleToggleDelete = useCallback((deviceId: string) => { diff --git a/src/app/pages/auth/login/Login.tsx b/src/app/pages/auth/login/Login.tsx index f742c58d5..59c7dd83b 100644 --- a/src/app/pages/auth/login/Login.tsx +++ b/src/app/pages/auth/login/Login.tsx @@ -131,7 +131,8 @@ export function Login() { ? (oidcErrorDescription ?? `Sign-in was not completed (${oidcError}).`) : undefined; - const showOidc = isUsableOAuthMetadata(authMetadata); + const oidcMetadata = isUsableOAuthMetadata(authMetadata) ? authMetadata : undefined; + const showOidc = oidcMetadata !== undefined; const hidePassword = hideUsernamePasswordFields; const showPassword = !hidePassword && parsedFlows.password !== undefined; const showLegacySso = parsedFlows.sso !== undefined; @@ -152,7 +153,7 @@ export function Login() { {showOidc && ( <>