Fix metric category names to match TypeScript types
Changed 'equity' to 'disadvantaged' and 'trends' to '3yr' to match the MetricDefinition category type. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -166,7 +166,7 @@ export function ComparisonView({
|
||||
))}
|
||||
</optgroup>
|
||||
<optgroup label="Equity (Disadvantaged)">
|
||||
{metrics.filter(m => m.category === 'equity').map((metric) => (
|
||||
{metrics.filter(m => m.category === 'disadvantaged').map((metric) => (
|
||||
<option key={metric.key} value={metric.key}>{metric.label}</option>
|
||||
))}
|
||||
</optgroup>
|
||||
@@ -176,7 +176,7 @@ export function ComparisonView({
|
||||
))}
|
||||
</optgroup>
|
||||
<optgroup label="3-Year Trends">
|
||||
{metrics.filter(m => m.category === 'trends').map((metric) => (
|
||||
{metrics.filter(m => m.category === '3yr').map((metric) => (
|
||||
<option key={metric.key} value={metric.key}>{metric.label}</option>
|
||||
))}
|
||||
</optgroup>
|
||||
|
||||
@@ -124,7 +124,7 @@ export function RankingsView({
|
||||
))}
|
||||
</optgroup>
|
||||
<optgroup label="Equity (Disadvantaged)">
|
||||
{metrics.filter(m => m.category === 'equity').map((metric) => (
|
||||
{metrics.filter(m => m.category === 'disadvantaged').map((metric) => (
|
||||
<option key={metric.key} value={metric.key}>{metric.label}</option>
|
||||
))}
|
||||
</optgroup>
|
||||
@@ -134,7 +134,7 @@ export function RankingsView({
|
||||
))}
|
||||
</optgroup>
|
||||
<optgroup label="3-Year Trends">
|
||||
{metrics.filter(m => m.category === 'trends').map((metric) => (
|
||||
{metrics.filter(m => m.category === '3yr').map((metric) => (
|
||||
<option key={metric.key} value={metric.key}>{metric.label}</option>
|
||||
))}
|
||||
</optgroup>
|
||||
|
||||
Reference in New Issue
Block a user