mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-24 07:51:34 +02:00
don't need null guard
This commit is contained in:
parent
76d4e8a788
commit
fd4e709705
@ -201,7 +201,7 @@ module.exports = React.createClass({
|
||||
if (textarea.value.length) {
|
||||
var left = textarea.value.substring(0, textarea.selectionStart);
|
||||
var right = textarea.value.substring(textarea.selectionEnd);
|
||||
if (right && right.length) {
|
||||
if (right.length) {
|
||||
left += payload.displayname;
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user