Upgrade to typescript-eslint
v6 (#25904)
This commit is contained in:
@@ -78,7 +78,7 @@ export class DisplayName extends React.PureComponent<Props> {
|
||||
} else if (account) {
|
||||
let acct = account.get('acct');
|
||||
|
||||
if (acct.indexOf('@') === -1 && localDomain) {
|
||||
if (!acct.includes('@') && localDomain) {
|
||||
acct = `${acct}@${localDomain}`;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user