diff --git a/src/components/Incident.svelte b/src/components/Incident.svelte index dc70c64..39b6d7e 100644 --- a/src/components/Incident.svelte +++ b/src/components/Incident.svelte @@ -105,11 +105,15 @@
{config.i18n.durationMin.replace( /\$DURATION/g, - Math.floor( - (new Date(incident.metadata.end).getTime() - - new Date(incident.metadata.start).getTime()) / - 60000 - ) + {#if incident.metdadata.end === "unknown"} + Not completed yet + {:else} + Math.floor( + (new Date(incident.metadata.end).getTime() - + new Date(incident.metadata.start).getTime()) / + 60000 + ) + {/if} )}
{:else if incident.closed_at}