Merge pull request #1123 from sharelatex/as-fix-missing-dates

Don't show missing dates and show confirmed emails in admin console

GitOrigin-RevId: 6866d7869ec852de89be35b7b3d0725dcc195e6e
This commit is contained in:
Paulo Jorge Reis 2018-11-15 09:40:00 +00:00 committed by sharelatex
parent 4c9eee51df
commit 9d4c3039e7

View file

@ -25,6 +25,7 @@ define(['base', 'moment'], function(App, moment) {
'formatDate', 'formatDate',
() => () =>
function(date, format) { function(date, format) {
if (!date) return 'N/A'
if (format == null) { if (format == null) {
format = 'Do MMM YYYY, h:mm a' format = 'Do MMM YYYY, h:mm a'
} }
@ -34,5 +35,5 @@ define(['base', 'moment'], function(App, moment) {
App.filter('relativeDate', () => date => moment(date).calendar()) App.filter('relativeDate', () => date => moment(date).calendar())
return App.filter('fromNowDate', () => date => moment(date).fromNow()) App.filter('fromNowDate', () => date => moment(date).fromNow())
}) })