bugfixing

This commit is contained in:
MuslemRahimi 2024-10-30 14:45:44 +01:00
parent 62594e13f6
commit a5d3ff25b3

View File

@ -27,43 +27,43 @@
let path; let path;
switch (sector) { switch (sector) {
case "Financials": case "Financials":
path = "financial-sector"; path = "financial";
break; break;
case "Healthcare": case "Healthcare":
path = "healthcare-sector"; path = "healthcare";
break; break;
case "Information Technology": case "Information Technology":
path = "technology-sector"; path = "technology";
break; break;
case "Technology": case "Technology":
path = "technology-sector"; path = "technology";
break; break;
case "Financial Services": case "Financial Services":
path = "financial-sector"; path = "financial";
break; break;
case "Industrials": case "Industrials":
path = "industrials-sector"; path = "industrials";
break; break;
case "Energy": case "Energy":
path = "energy-sector"; path = "energy";
break; break;
case "Utilities": case "Utilities":
path = "utilities-sector"; path = "utilities";
break; break;
case "Consumer Cyclical": case "Consumer Cyclical":
path = "consumer-cyclical-sector"; path = "consumer-cyclical";
break; break;
case "Real Estate": case "Real Estate":
path = "real-estate-sector"; path = "real-estate";
break; break;
case "Basic Materials": case "Basic Materials":
path = "basic-materials-sector"; path = "basic-materials";
break; break;
case "Communication Services": case "Communication Services":
path = "communication-services-sector"; path = "communication-services";
break; break;
case "Consumer Defensive": case "Consumer Defensive":
path = "consumer-defensive-sector"; path = "consumer-defensive";
break; break;
default: default:
// Handle default case if needed // Handle default case if needed
@ -273,7 +273,7 @@
> >
{#each data?.getAnalystStats?.mainSectors as sector} {#each data?.getAnalystStats?.mainSectors as sector}
<a <a
href={"/list/" + sectorSelector(sector)} href={"/list/sector/" + sectorSelector(sector)}
class="cursor-pointer w-fit border border-gray-600 px-3 sm:px-4 py-2 text-sm sm:text-[1rem] font-medium rounded-md sm:hover:text-blue-400 text-white underline underline-offset-4" class="cursor-pointer w-fit border border-gray-600 px-3 sm:px-4 py-2 text-sm sm:text-[1rem] font-medium rounded-md sm:hover:text-blue-400 text-white underline underline-offset-4"
> >
{sector} {sector}