lpa portal view

This commit is contained in:
Rob Bond
2023-07-26 11:46:01 +01:00
parent 31375a5999
commit 3ff708737c
8 changed files with 74 additions and 19 deletions
+5 -3
View File
@@ -204,9 +204,11 @@ const CaseSummary = (props) => {
let showDetails = typeof detailsObj != "undefined" ? true : false;
var timestamp = Date.parse(
detailsObj.pinswg_representation_period_end_date
);
var timestamp = showDetails
? detailsObj.hasOwnProperty("pinswg_representation_period_end_date")
? Date.parse(detailsObj.pinswg_representation_period_end_date)
: "n/a"
: "n/a";
if (isNaN(timestamp) == false) {
var d = new Date(timestamp);