diff --git a/app/scenes/Login/Login.tsx b/app/scenes/Login/Login.tsx index f12ba85a54..0e5eedadb9 100644 --- a/app/scenes/Login/Login.tsx +++ b/app/scenes/Login/Login.tsx @@ -202,7 +202,7 @@ function Login({ children, onBack }: Props) { (provider) => provider.id === auth.lastSignedIn && !isCreate ); const clientType = Desktop.isElectron() ? Client.Desktop : Client.Web; - const preferOTP = Desktop.isElectron() || isPWA; + const preferOTP = isPWA; if (firstRun) { return ; diff --git a/app/scenes/Login/components/AuthenticationProvider.tsx b/app/scenes/Login/components/AuthenticationProvider.tsx index 9a2682d75a..ea3391207c 100644 --- a/app/scenes/Login/components/AuthenticationProvider.tsx +++ b/app/scenes/Login/components/AuthenticationProvider.tsx @@ -28,7 +28,7 @@ function AuthenticationProvider(props: Props) { const [email, setEmail] = React.useState(""); const { isCreate, id, name, authUrl, onEmailSuccess, ...rest } = props; const clientType = Desktop.isElectron() ? Client.Desktop : Client.Web; - const preferOTP = Desktop.isElectron() || isPWA; + const preferOTP = isPWA; const handleChangeEmail = (event: React.ChangeEvent) => { setEmail(event.target.value);