Skip to content

Commit

Permalink
show message if timestamp is null
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Brahmer <[email protected]>
Signed-off-by: Wolfgang <[email protected]>
  • Loading branch information
wofferl and Grotax committed Jan 2, 2025
1 parent 9a0f8f6 commit 75fb95b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/modals/FeedInfoTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export default {
},
methods: {
formatDate(timestamp) {
if (!timestamp) {
return t('news', 'Not available')
}
return new Date(timestamp).toLocaleDateString(undefined, {
day: '2-digit',
month: '2-digit',
Expand Down

0 comments on commit 75fb95b

Please sign in to comment.