diff --git a/app/soapbox/features/auth-login/components/login-form.tsx b/app/soapbox/features/auth-login/components/login-form.tsx index f526548d8..9a4768903 100644 --- a/app/soapbox/features/auth-login/components/login-form.tsx +++ b/app/soapbox/features/auth-login/components/login-form.tsx @@ -3,9 +3,9 @@ import { FormattedMessage, defineMessages, useIntl } from 'react-intl'; import { Link } from 'react-router-dom'; import { Button, Form, FormActions, FormGroup, Input, Stack } from 'soapbox/components/ui'; +import { useFeatures } from 'soapbox/hooks'; import ConsumersList from './consumers-list'; -import { useFeatures } from 'soapbox/hooks'; const messages = defineMessages({ username: { diff --git a/app/soapbox/utils/features.ts b/app/soapbox/utils/features.ts index 36e2811ab..b24e75525 100644 --- a/app/soapbox/utils/features.ts +++ b/app/soapbox/utils/features.ts @@ -600,7 +600,10 @@ const getInstanceFeatures = (instance: Instance) => { /** * Can sign in using username instead of e-mail address. */ - logInWithUsername: v.software === PLEROMA || v.software === TRUTHSOCIAL, + logInWithUsername: any([ + v.software === PLEROMA, + v.software === TRUTHSOCIAL, + ]), /** * Can perform moderation actions with account and reports.