diff --git a/src/lib/components/AIScore.svelte b/src/lib/components/AIScore.svelte index a42533e6..d6674ead 100644 --- a/src/lib/components/AIScore.svelte +++ b/src/lib/components/AIScore.svelte @@ -1,16 +1,18 @@ + - +
@@ -40,16 +42,16 @@ class="stroke-current {score >= 7 ? 'text-[#37C97D]' : score >=4 ? 'text-[#FF9E21]' : 'text-[#FF2F1F]'}" stroke-width="3" stroke-dasharray="100.48" - stroke-dashoffset="{100.48 - ((tier === 'Pro' ? score : 0) / 10) * 100.48}"> + stroke-dashoffset="{100.48 - ((tier === 'Pro' || ['AAPL','NVDA','GOOGL','META','AMD']?.includes($stockTicker) ? score : 0) / 10) * 100.48}"> - {tier === 'Pro' ? score : 0} + {tier === 'Pro' || ['AAPL','NVDA','GOOGL','META','AMD']?.includes($stockTicker) ? score : 0}
- {#if tier === 'Pro'} + {#if tier === 'Pro' || ['AAPL','NVDA','GOOGL','META','AMD']?.includes($stockTicker) } {score} @@ -75,7 +77,7 @@
-

+

{#if score === 10} Strong Buy {:else if score >=7} diff --git a/src/routes/stocks/[tickerID]/+layout.svelte b/src/routes/stocks/[tickerID]/+layout.svelte index db6ddbba..b13f5ec0 100644 --- a/src/routes/stocks/[tickerID]/+layout.svelte +++ b/src/routes/stocks/[tickerID]/+layout.svelte @@ -10,7 +10,6 @@ import AIScore from "$lib/components/AIScore.svelte"; export let data; - $: $realtimePrice = data?.getStockQuote?.price?.toFixed(2); async function loadSearchData() {