From f709ee30ee92ae682a0c34b424814f05740c4f21 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Tue, 8 Dec 2015 14:07:23 -0800 Subject: [PATCH] Fix for completedDate missing --- server/views/account/show.jade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/views/account/show.jade b/server/views/account/show.jade index 14132f22e5..f8454f4b4e 100644 --- a/server/views/account/show.jade +++ b/server/views/account/show.jade @@ -136,7 +136,7 @@ block content tr td.col-xs-4.hidden-xs a(href='/challenges/' + challenge.name, target='_blank')= challenge.name - td.col-xs-2.hidden-xs= moment(challenge.completedDate, 'x').format("MMM DD, YYYY") + td.col-xs-2.hidden-xs= challenge.completedDate ? moment(challenge.completedDate, 'x').format("MMM DD, YYYY") : 'Not Available' td.col-xs-6.hidden-xs a(href=challenge.solution, target='_blank') View my project td.col-xs-12.visible-xs @@ -152,7 +152,7 @@ block content for bonfire in bonfires tr td.col-xs-6.hidden-xs= bonfire.name - td.col-xs-3.hidden-xs= moment(bonfire.completedDate, 'x').format("MMM DD, YYYY") + td.col-xs-3.hidden-xs= bonfire.completedDate ? moment(bonfire.completedDate, 'x').format("MMM DD, YYYY") : 'Not Available' td.col-xs-3.hidden-xs a(href='/challenges/' + bonfire.name + '?solution=' + encodeURIComponent(encodeFcc(bonfire.solution)), target='_blank') View my solution td.col-xs-12.visible-xs @@ -168,7 +168,7 @@ block content for challenge in waypoints tr td.col-xs-6.hidden-xs= challenge.name - td.col-xs-3.hidden-xs= moment(challenge.completedDate, 'x').format("MMM DD, YYYY") + td.col-xs-3.hidden-xs= challenge.completedDate ?moment(challenge.completedDate, 'x').format("MMM DD, YYYY") : 'Not Available' td.col-xs-3.hidden-xs if (challenge.solution) a(href='/challenges/' + challenge.name + '?solution=' + encodeURIComponent(encodeFcc(challenge.solution)), target='_blank') View my solution