Skip to content

Commit 24596f4

Browse files
committed
🐛 fix something
1 parent 927c68d commit 24596f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/callEventHelper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export const getTextDescriptionForCallevent = (
3737
callEvent: CallEvent,
3838
): string => {
3939
const date = new Date(callEvent.startTime);
40-
const duration = formatDuration(callEvent.endTime - callEvent.startTime);
40+
const duration = callEvent.endTime
41+
? formatDuration(callEvent.endTime - callEvent.startTime)
42+
: 0;
4143
const directionInfo =
4244
callEvent.direction === CallDirection.IN ? 'eingehender' : 'ausgehender';
4345
const { from, to } = getCallMembers(callEvent);

0 commit comments

Comments
 (0)