Skip to content

Commit 89d1e6a

Browse files
committed
Adjust default text when end-date value is null
1 parent cd5bc4e commit 89d1e6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/modules/shared/formatters/parse-date-time-offset/parse-date-time-offset.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import * as moment from 'moment';
22

33
export class ParseDateTimeOffset {
44

5-
parseDateTimeOffset(date:string, offset): string{
5+
parseDateTimeOffset(date:string, offset): string{
6+
if(date == null) return 'In process';
67
return moment.utc(date).utcOffset(-1*offset).format("HH:mm");
78
}
89
}

0 commit comments

Comments
 (0)