apply review feedback from @lukebarnard1

(cherry picked from commit 37d4bce)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Matthew Hodgson 2018-07-09 00:52:27 +01:00 committed by Michael Telatynski
parent 83f2614919
commit 021409aafe
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E
6 changed files with 38 additions and 116 deletions

View file

@ -111,7 +111,7 @@ export default class UserProvider extends AutocompleteProvider {
// relies on the length of the entity === length of the text in the decoration.
completion: user.rawDisplayName.replace(' (IRC)', ''),
completionId: user.userId,
suffix: (selection.beginning && range.start === 0) ? ': ' : ' ',
suffix: (selection.beginning && selection.start === 0) ? ': ' : ' ',
href: makeUserPermalink(user.userId),
component: (
<PillCompletion