From 04bfd4262f985332619dea5039404d087d20302e Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 15 Oct 2016 16:54:50 +0200 Subject: Fix follow suggestions ranking --- .../components/features/compose/components/suggestions_box.jsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/assets/javascripts') 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
; + } + return (
Who to follow -- cgit