corrected output for badly-formatted timeout date.

pull/650/head
William Kim 2013-08-12 16:20:42 -04:00 committed by Justin Richer
parent f871edefed
commit d30b53ddbf
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}