From 8ff341f006da91a4bda99223d5fdc072fa8934dd Mon Sep 17 00:00:00 2001 From: Eivind Dalholt Date: Sat, 7 Dec 2024 14:14:37 +0100 Subject: [PATCH] Simplify liters count --- frontend/src/lib/LastCoffee.svelte | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/frontend/src/lib/LastCoffee.svelte b/frontend/src/lib/LastCoffee.svelte index 734fc85..fcc3575 100644 --- a/frontend/src/lib/LastCoffee.svelte +++ b/frontend/src/lib/LastCoffee.svelte @@ -1,21 +1,16 @@ -{hours} hours and {minutes} minutes +{#if timeSince} +

{timeSince}

+{:else} +

Loading...

+{/if}