diff --git a/src/js/components/SearchBox.js b/src/js/components/SearchBox.js index ce147718..588a9ce8 100644 --- a/src/js/components/SearchBox.js +++ b/src/js/components/SearchBox.js @@ -120,11 +120,11 @@ class SearchBox extends Component { if (i.followDistance === 1) { followText = 'Following'; } - if (i.followDistance === 2) { + if (i.followDistance > 1) { if (i.followers.size === 1 && Session.getFollows()[[...i.followers][0]] && Session.getFollows()[[...i.followers][0]].name) { followText = `Followed by ${ Session.getFollows()[[...i.followers][0]].name}`; } else { - followText = `Followed by ${ i.followers.size } users you follow`; + followText = `${ i.followers.size } followers`; } } return html` diff --git a/src/js/views/Profile.js b/src/js/views/Profile.js index f51f6d74..456e75ce 100644 --- a/src/js/views/Profile.js +++ b/src/js/views/Profile.js @@ -144,14 +144,14 @@ class Profile extends View { `: this.props.id === SMS_VERIFIER_PUB ? html`

${t('ask_for_verification')}

` : ''} - ${this.isMyProfile ? '' : html`<${FollowButton} id=${this.props.id}/>`} + ${this.isMyProfile ? '' : html`<${FollowButton} key=${`${this.props.id}follow`} id=${this.props.id}/>`} - <${CopyButton} text=${t('copy_link')} title=${this.state.name} copyStr=${`https://iris.to${ window.location.pathname}`}/> + <${CopyButton} key=${`${this.props.id}copy`} text=${t('copy_link')} title=${this.state.name} copyStr=${`https://iris.to${ window.location.pathname}`}/> ${this.isMyProfile ? '' : html` `} - ${this.isMyProfile ? '' : html`<${BlockButton} id=${this.props.id}/>`} + ${this.isMyProfile ? '' : html`<${BlockButton} key=${`${this.props.id}block`} id=${this.props.id}/>`}