Update src/components/views/settings/tabs/user/SecurityUserSettingsTab.js

Co-Authored-By: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
Agusti Bau 2020-04-22 20:03:22 +02:00 committed by GitHub
parent 5163232081
commit 2471b3c100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ export default class SecurityUserSettingsTab extends React.Component {
_onUserUnignored = async (userId) => { _onUserUnignored = async (userId) => {
const {ignoredUserIds, waitingUnignored} = this.state; const {ignoredUserIds, waitingUnignored} = this.state;
const currentlyIgnoredUserIds = ignoredUserIds.filter(e=> !waitingUnignored.includes(e)); const currentlyIgnoredUserIds = ignoredUserIds.filter(e => !waitingUnignored.includes(e));
const index = currentlyIgnoredUserIds.indexOf(userId); const index = currentlyIgnoredUserIds.indexOf(userId);
if (index !== -1) { if (index !== -1) {