diff --git a/frontend/src/component/feature/view/metric-component.jsx b/frontend/src/component/feature/view/metric-component.jsx index 0bde8de5f9..e883b34927 100644 --- a/frontend/src/component/feature/view/metric-component.jsx +++ b/frontend/src/component/feature/view/metric-component.jsx @@ -51,6 +51,10 @@ export default class MetricComponent extends React.Component { formatFullDateTime(v) { return formatFullDateTimeWithLocale(v, this.props.location.locale); } + renderLastSeen = lastSeenAt => { + return lastSeenAt ? this.formatFullDateTime(lastSeenAt) : 'Never reported'; + }; + render() { const { metrics = {}, featureToggle } = this.props; const { @@ -113,7 +117,13 @@ export default class MetricComponent extends React.Component { )} - Created {this.formatFullDateTime(featureToggle.createdAt)} +
+ Created: + {this.formatFullDateTime(featureToggle.createdAt)} +
+ Last seen: + {this.renderLastSeen(featureToggle.lastSeenAt)} +