fix: timer not stopping when failed

This commit is contained in:
tglide
2023-02-10 12:15:00 +00:00
parent bdb2b7b432
commit 7db8153311
@@ -189,10 +189,10 @@
</TableCell>
<TableCellText title="Build Time">
{#if deployment.status === 'ready'}
{calculateTime(deployment.buildTime)}
{:else}
{#if ['processing', 'building'].includes(deployment.status)}
<span use:timer={{ start: deployment.$createdAt }} />
{:else}
{calculateTime(deployment.buildTime)}
{/if}
</TableCellText>