about summary refs log tree commit diff
path: root/app/assets/javascripts/components
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-15 16:54:50 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-15 16:54:50 +0200
commit04bfd4262f985332619dea5039404d087d20302e (patch)
tree0205ee936424fffa24e08898d4ca146d03243c69 /app/assets/javascripts/components
parent7075cef8f99f715fbf77a67e45bbc1e7edcada42 (diff)
Fix follow suggestions ranking
Diffstat (limited to 'app/assets/javascripts/components')
-rw-r--r--app/assets/javascripts/components/features/compose/components/suggestions_box.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/features/compose/components/suggestions_box.jsx b/app/assets/javascripts/components/features/compose/components/suggestions_box.jsx
index baff317d7..3991fee4d 100644
--- a/app/assets/javascripts/components/features/compose/components/suggestions_box.jsx
+++ b/app/assets/javascripts/components/features/compose/components/suggestions_box.jsx
@@ -52,6 +52,10 @@ const SuggestionsBox = React.createClass({
   render () {
     const accounts = this.props.accounts.take(3);
 
+    if (account.size === 0) {
+      return <div />;
+    }
+
     return (
       <div style={outerStyle}>
         <strong style={headerStyle}>Who to follow</strong>