Skip to content
Snippets Groups Projects
Commit fd4e7097 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

don't need null guard

parent 76d4e8a7
Branches matthew/insert-displayname
Tags
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment