Merge pull request #4150 from matrix-org/travis/fix-cutoff

Fix the last char of people's names being cut off in the invite dialog
This commit is contained in:
Travis Ralston 2020-03-02 09:59:51 -07:00 committed by GitHub
commit 680beb858e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,7 +219,7 @@ class DMRoomTile extends React.PureComponent {
}
// Push any text we missed (end of text)
if (i < (str.length - 1)) {
if (i < str.length) {
result.push(<span key={i + 'end'}>{str.substring(i)}</span>);
}