Skip to content

Commit fcb2eca

Browse files
authored
1 parent 9b4cd08 commit fcb2eca

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/components/Incident.svelte

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,15 @@
105105
<dd>
106106
{config.i18n.durationMin.replace(
107107
/\$DURATION/g,
108-
Math.floor(
109-
(new Date(incident.metadata.end).getTime() -
110-
new Date(incident.metadata.start).getTime()) /
111-
60000
112-
)
108+
{#if incident.metdadata.end === "unknown"}
109+
Not completed yet
110+
{:else}
111+
Math.floor(
112+
(new Date(incident.metadata.end).getTime() -
113+
new Date(incident.metadata.start).getTime()) /
114+
60000
115+
)
116+
{/if}
113117
)}
114118
</dd>
115119
{:else if incident.closed_at}

0 commit comments

Comments
 (0)