We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e24511 commit 335dc6aCopy full SHA for 335dc6a
frontend/src/components/view/tweet/Comment.vue
@@ -25,7 +25,7 @@
25
<span class="icon is-medium has-text-info">
26
<font-awesome-icon icon="heart" />
27
</span>
28
- {{ comment.likesCount || 0 }}
+ {{ comment.likesCount }}
29
</a>
30
</div>
31
</nav>
frontend/src/services/Normalizer.js
@@ -13,7 +13,9 @@ export const commentMapper = comment => ({
13
authorId: comment.author_id,
14
created: comment.created_at,
15
updated: comment.updated_at,
16
- author: userMapper(comment.author)
+ author: userMapper(comment.author),
17
+ // @todo fix backend api
18
+ likesCount: comment.likes_count || 0
19
});
20
21
export const tweetMapper = tweet => ({
0 commit comments