summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-07-16 09:27:18 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-07-16 09:27:18 -0700
commit1f87c46360b434335ee4b8eae5162b8d37de6f4b (patch)
tree6020b7e2ca33ee382b4989fb966552237fd13f5b /web
parentcb4cd741a45fc86a7c2d96e61abd65ad4bd728e1 (diff)
downloadchat-1f87c46360b434335ee4b8eae5162b8d37de6f4b.tar.gz
chat-1f87c46360b434335ee4b8eae5162b8d37de6f4b.tar.bz2
chat-1f87c46360b434335ee4b8eae5162b8d37de6f4b.zip
Minor code change for clarity
Diffstat (limited to 'web')
-rw-r--r--web/react/components/mention_list.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/mention_list.jsx b/web/react/components/mention_list.jsx
index fff0c10b8..c5ff82346 100644
--- a/web/react/components/mention_list.jsx
+++ b/web/react/components/mention_list.jsx
@@ -129,7 +129,7 @@ module.exports = React.createClass({
if (direction === "up" && ifLoopUp !== -1)
scrollAmount = $("#mentionsbox").height() * 100; //Makes sure that it scrolls all the way to the bottom
- else if (direction === "down" && this.refs['mention' + this.state.selectedMention].props.listId === 0)
+ else if (direction === "down" && this.state.selectedMention === 0)
scrollAmount = 0;
else if (direction === "up")
scrollAmount = "-=" + ($('#'+this.refs['mention' + this.state.selectedMention].props.id +"_mentions").innerHeight() - 5);