Merge branch 'fix-warnings' into 'develop'

Fix a couple warnings

See merge request soapbox-pub/soapbox!2239
This commit is contained in:
Alex Gleason 2023-01-29 23:17:09 +00:00
commit 8ab8647a84
2 changed files with 9 additions and 2 deletions

View File

@ -50,7 +50,14 @@ const StatusReplyMentions: React.FC<IStatusReplyMentions> = ({ status, hoverable
// The typical case with a reply-to and a list of mentions.
const accounts = to.slice(0, 2).map(account => {
const link = (
<Link to={`/@${account.acct}`} className='reply-mentions__account' onClick={(e) => e.stopPropagation()}>@{account.username}</Link>
<Link
key={account.id}
to={`/@${account.acct}`}
className='reply-mentions__account'
onClick={(e) => e.stopPropagation()}
>
@{account.username}
</Link>
);
if (hoverable) {

View File

@ -57,7 +57,7 @@ const setDomainBlocking = (state: State, accounts: ImmutableList<string>, blocki
const importPleromaAccount = (state: State, account: APIEntity) => {
const relationship = get(account, ['pleroma', 'relationship'], {});
if (relationship.id && relationship !== {})
if (relationship.id)
return normalizeRelationships(state, [relationship]);
return state;
};