aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-18 21:45:14 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commit4a71bb7c241e64dd722fa873385a2061d031d5e3 (patch)
treea57511f908814dc7c82637561e38a6fb4d18fd4b /vnext/src/components
parenta2e984badda895b175cb522908cafc3defb73092 (diff)
fix recommendations list
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/Thread.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js
index b847d618..64759122 100644
--- a/vnext/src/components/Thread.js
+++ b/vnext/src/components/Thread.js
@@ -68,12 +68,12 @@ export default class Thread extends React.Component {
</div>
</form>
{
- msg.recomm && (
- <div className="msg-recomms">{`Recommended by (${msg.recomm.length}):`}
+ msg.recommendations && (
+ <div className="msg-recomms">{`Recommended by (${msg.recommendations.length}): `}
{
- msg.recomm.map((it, index) => (
- <a href="/{{ it }}/">{it}</a>
- ))
+ msg.recommendations.map(it => (
+ <a href={`/${it}/`}>{it}</a>
+ )).reduce((prev, curr) => [prev, ', ', curr])
}
</div>
)