From 6b4076ce10786b7c2650f7cc3cf2a971a37d4f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 16 Apr 2023 15:10:41 +0200 Subject: [PATCH] lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/auth-login/components/login-form.tsx | 2 +- app/soapbox/utils/features.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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.