Skip to content

Commit

Permalink
feat: Update src/views/components/NewsletterList.js
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
aldinokemal and coderabbitai[bot] authored Oct 11, 2024
1 parent 5f24646 commit 6c1b437
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/components/NewsletterList.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default {
},
formatDate: function (value) {
if (!value) return ''
if (isNaN(value)) return 'Invalid date';
return moment.unix(value).format('LLL');
}
},
Expand Down

0 comments on commit 6c1b437

Please sign in to comment.