From 22d5d14b65bc6791d0ce33767edfac797d9f1d68 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 26 Jul 2024 20:00:22 +0200 Subject: [PATCH] ui fix --- src/lib/components/DCF.svelte | 2 +- src/lib/components/DarkPool.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/DCF.svelte b/src/lib/components/DCF.svelte index 118a4874..3a162e95 100644 --- a/src/lib/components/DCF.svelte +++ b/src/lib/components/DCF.svelte @@ -206,7 +206,7 @@ async function getFairPrice(ticker) { fairPrice = null; } } - if (fairPrice !== null) { + if (fairPrice !== null && fairPrice >= 0) { $dcfComponent = true; } else { diff --git a/src/lib/components/DarkPool.svelte b/src/lib/components/DarkPool.svelte index ebdc7c81..ccb10dbf 100644 --- a/src/lib/components/DarkPool.svelte +++ b/src/lib/components/DarkPool.svelte @@ -282,7 +282,7 @@ $: { Date - + { formatDateRange(rawData?.slice(-1)?.at(0)?.date)}