corrected output for badly-formatted timeout date.

pull/650/head
William Kim 11 years ago committed by Justin Richer
parent f871edefed
commit d30b53ddbf

@ -144,8 +144,10 @@ var ApprovedSiteView = Backbone.View.extend({
}
}
if (timeoutDate == null || !moment(timeoutDate).isValid()) {
if (timeoutDate == null) {
timeoutDate = "Never";
} else if (!moment(timeoutDate).isValid()) {
timeoutDate = "Unknown";
} else {
timeoutDate = moment(timeoutDate).calendar();
}

Loading…
Cancel
Save