Skip to content

Commit 01e38f5

Browse files
committed
fix: adjust to return -- when endDate is still empty
...per discussion / review request
1 parent a99b398 commit 01e38f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Analysis/GWASResults/Views/Execution/ExecutionTable/ExecutionTable.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import SharedContext from '../../../Utils/SharedContext';
44
import DateForTable from '../../../Components/DateForTable/DateForTable';
55

66
const subtractDates = (endDate, startDate) => {
7-
let timestampEnd = Date.now();
8-
if (endDate) {
9-
timestampEnd = Date.parse(endDate);
7+
if (!endDate) {
8+
return '--';
109
}
10+
const timestampEnd = Date.parse(endDate);
1111
const timestampStart = Date.parse(startDate);
1212
const diffInMs = timestampEnd - timestampStart;
1313
// See here for more info:

0 commit comments

Comments
 (0)