We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a99b398 commit 01e38f5Copy full SHA for 01e38f5
src/Analysis/GWASResults/Views/Execution/ExecutionTable/ExecutionTable.jsx
@@ -4,10 +4,10 @@ import SharedContext from '../../../Utils/SharedContext';
4
import DateForTable from '../../../Components/DateForTable/DateForTable';
5
6
const subtractDates = (endDate, startDate) => {
7
- let timestampEnd = Date.now();
8
- if (endDate) {
9
- timestampEnd = Date.parse(endDate);
+ if (!endDate) {
+ return '--';
10
}
+ const timestampEnd = Date.parse(endDate);
11
const timestampStart = Date.parse(startDate);
12
const diffInMs = timestampEnd - timestampStart;
13
// See here for more info:
0 commit comments