From b81dada5d022777db83bb65cead1c3c58f5c2f33 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Tue, 10 Sep 2024 08:17:45 +0200 Subject: [PATCH] ui fix --- src/routes/home/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte index 78c2ff80..444778e5 100644 --- a/src/routes/home/+page.svelte +++ b/src/routes/home/+page.svelte @@ -486,9 +486,9 @@ onMount( async() => { {item?.name} ({item?.symbol}) {item?.isToday === true ? 'will report today' : ['Monday', 'Tuesday', 'Wednesday', 'Thursday'].includes(new Date().toLocaleDateString('en-US', { weekday: 'long' })) ? "will report tomorrow" : "will report monday"} {#if item?.time} - {#if compareTimes(item?.time, '16:00') > 0} + {#if compareTimes(item?.time, '16:00') >= 0} after market closes. - {:else if compareTimes(item?.time, '09:30') < 0} + {:else if compareTimes(item?.time, '09:30') <= 0} before market opens. {:else} during market.