diff --git a/src/lib/components/TARating.svelte b/src/lib/components/TARating.svelte index b7e07c01..8719ff99 100644 --- a/src/lib/components/TARating.svelte +++ b/src/lib/components/TARating.svelte @@ -87,7 +87,6 @@ async function updateData() { }); isLoaded = true; - console.log(signalList); } catch (error) { console.error("Error fetching data:", error); } diff --git a/src/lib/components/WIIM.svelte b/src/lib/components/WIIM.svelte index 7bbb6360..2a4a4393 100644 --- a/src/lib/components/WIIM.svelte +++ b/src/lib/components/WIIM.svelte @@ -3,9 +3,10 @@ import {stockTicker} from '$lib/store'; import InfoModal from '$lib/components/InfoModal.svelte'; - export let wiim = []; export let data; + let isLoaded = false; + let wiim; let showFullHistory = false; function latestInfoDate(inputDate) { @@ -28,9 +29,12 @@ function latestInfoDate(inputDate) { $: { - if ($stockTicker && typeof window !== 'undefined' && typeof wiim !== 'undefined' && wiim?.length !== 0) - { - showFullHistory = false; + if ($stockTicker && typeof window !== 'undefined') + { + isLoaded = false; + showFullHistory = false; + wiim = data?.getWhyPriceMoved || []; + isLoaded = true; } } @@ -55,6 +59,7 @@ $: { {#if data?.user?.tier === 'Pro'} + {#if isLoaded} {#if wiim?.length !== 0}