Skip to content

Commit 9b0098d

Browse files
fix: location case insensitive in tabs selector
1 parent c26f536 commit 9b0098d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app/_home/$school/$year/$id/-location-select.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ function LocationCombobox({ value, onChange, locations }: Props) {
9292

9393
function LocationsTabs({ value, onChange, locations }: Props) {
9494
return (
95-
<Tabs value={value} onValueChange={onChange}>
95+
<Tabs value={value.toLowerCase()} onValueChange={onChange}>
9696
<TabsList>
9797
{locations.map((location) => (
98-
<TabsTrigger value={location} key={location}>
98+
<TabsTrigger
99+
value={location.toLowerCase()}
100+
key={location.toLowerCase()}
101+
>
99102
{capitaliseWords(location)}
100103
</TabsTrigger>
101104
))}

0 commit comments

Comments
 (0)