From a5d3ff25b3517c772cc5b0866d911b16e421b55d Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 30 Oct 2024 14:45:44 +0100 Subject: [PATCH] bugfixing --- src/routes/analysts/[slug]/+page.svelte | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/routes/analysts/[slug]/+page.svelte b/src/routes/analysts/[slug]/+page.svelte index fca47d79..7c22ea0e 100644 --- a/src/routes/analysts/[slug]/+page.svelte +++ b/src/routes/analysts/[slug]/+page.svelte @@ -27,43 +27,43 @@ let path; switch (sector) { case "Financials": - path = "financial-sector"; + path = "financial"; break; case "Healthcare": - path = "healthcare-sector"; + path = "healthcare"; break; case "Information Technology": - path = "technology-sector"; + path = "technology"; break; case "Technology": - path = "technology-sector"; + path = "technology"; break; case "Financial Services": - path = "financial-sector"; + path = "financial"; break; case "Industrials": - path = "industrials-sector"; + path = "industrials"; break; case "Energy": - path = "energy-sector"; + path = "energy"; break; case "Utilities": - path = "utilities-sector"; + path = "utilities"; break; case "Consumer Cyclical": - path = "consumer-cyclical-sector"; + path = "consumer-cyclical"; break; case "Real Estate": - path = "real-estate-sector"; + path = "real-estate"; break; case "Basic Materials": - path = "basic-materials-sector"; + path = "basic-materials"; break; case "Communication Services": - path = "communication-services-sector"; + path = "communication-services"; break; case "Consumer Defensive": - path = "consumer-defensive-sector"; + path = "consumer-defensive"; break; default: // Handle default case if needed @@ -273,7 +273,7 @@ > {#each data?.getAnalystStats?.mainSectors as sector} {sector}