- {#if Object?.keys(aiScoreDict)?.length !== 0}
-
-
-
-
-
-
-
+
+
+
+
+
-
+
{score}
+
+ {#if score === 10}
+ Strong Buy
+ {:else if score >=7}
+ Buy
+ {:else if score >=4}
+ Hold
+ {:else if score >=2}
+ Sell
+ {:else}
+ Strong Sell
+ {/if}
+
- {/if}
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/routes/stocks/[tickerID]/+layout.svelte b/src/routes/stocks/[tickerID]/+layout.svelte
index ea37c364..ae95b912 100644
--- a/src/routes/stocks/[tickerID]/+layout.svelte
+++ b/src/routes/stocks/[tickerID]/+layout.svelte
@@ -7,6 +7,7 @@
import toast from "svelte-french-toast";
import Sidecard from "$lib/components/Sidecard.svelte";
import Markethour from "$lib/components/Markethour.svelte";
+ import AIScore from "$lib/components/AIScore.svelte";
export let data;
@@ -436,23 +437,24 @@ async function toggleUserWatchlist(watchListId: string) {