From 4a0583e6e6737fefb2f39bf6ed0f37be4524a8b5 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 28 Jun 2018 12:11:21 +0300 Subject: empty recommendations fix --- vnext/src/components/Thread.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vnext/src') 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 && (
{`Recommended by (${recomms.length}): `} { recomms.map(it => ( {it} - )).reduce((prev, curr) => [prev, ', ', curr]) + )).reduce((prev, curr) => [prev, ', ', curr], 0) }
) || null; -- cgit v1.2.3