Skip to content

Commit 7360a78

Browse files
authored
Merge pull request #2205 from appirio-tech/hotfix/bug_calculating_year_of_posts
Fixed bug in calculating year of posts
2 parents 999239b + 776623c commit 7360a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Feed/FeedComments.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function formatCommentDate(date) {
1919

2020
// if another year
2121
if (!date.isSame(today, 'year')) {
22-
formated += `, ${formated.format('YYYY')}`
22+
formated += `, ${date.format('YYYY')}`
2323

2424
// if today
2525
} else if (date.isSame(today, 'day')) {

0 commit comments

Comments
 (0)