From fec1edf71164ef0116d881876ac990343502a267 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 13 Dec 2017 12:41:28 +0000 Subject: [PATCH] Make contact view more ressilient. --- src/Contact.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Contact.tsx b/src/Contact.tsx index 6b99c07..40275ef 100644 --- a/src/Contact.tsx +++ b/src/Contact.tsx @@ -28,7 +28,7 @@ class Contact extends React.Component { const name = contact.fn; const revProp = contact.comp.getFirstProperty('rev'); - const lastModified = (revProp !== undefined) ? + const lastModified = (revProp) ? 'Modified: ' + moment(revProp.getFirstValue().toJSDate()).format('LLLL') : undefined; let lists = [];