diff options
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/components/Thread.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index 9ef5c5b9..e0b25bf9 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -162,12 +162,12 @@ export default class Thread extends React.Component { function Recommendations(props) { const recomms = props.src; - return recomms && ( + return recomms && recomms.length > 0 && ( <div className="msg-recomms">{`Recommended by (${recomms.length}): `} { recomms.map(it => ( <Link key={it} to={`/${it}/`}>{it}</Link> - )).reduce((prev, curr) => [prev, ', ', curr]) + )).reduce((prev, curr) => [prev, ', ', curr], 0) } </div> ) || null; |