diff --git a/packages/components/src/components/DetailsHeader/DetailsHeader.jsx b/packages/components/src/components/DetailsHeader/DetailsHeader.jsx index 6c55ce35b..3aa6e8765 100644 --- a/packages/components/src/components/DetailsHeader/DetailsHeader.jsx +++ b/packages/components/src/components/DetailsHeader/DetailsHeader.jsx @@ -28,9 +28,7 @@ class DetailsHeader extends Component { stepStatus.terminated || {}); } - const wrongDateChecker = new Date(startTime).getTime() - - if (!startTime || !endTime || wrongDateChecker == 0) { + if (!startTime || !endTime || new Date(startTime).getTime() == 0) { return null; }