bugfixing

This commit is contained in:
MuslemRahimi 2024-11-04 17:13:31 +01:00
parent 261307f3c6
commit 88469c11f3

View File

@ -39,43 +39,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
@ -522,7 +522,7 @@
> >
<td class="text-[1rem] whitespace-nowrap"> <td class="text-[1rem] whitespace-nowrap">
<a <a
href={"/list/" + sectorSelector(name)} href={"/list/sector/" + sectorSelector(name)}
class="sm:hover:text-white text-blue-400" class="sm:hover:text-white text-blue-400"
> >
{name} {name}