Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/pages/sprints.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const sprints = await getCollection("sprints", ({ data }) => {
<label for="level-filter" class="font-semibold text-gray-700 text-lg">Python Level:</label>
<select id="level-filter" class="px-4 py-2 border border-gray-300 rounded-lg bg-white text-lg min-w-[150px] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
<option value="">All Levels</option>
<option value="Any">Any</option>
<option value="Beginner">Beginner</option>
<option value="Intermediate">Intermediate</option>
<option value="Advanced">Advanced</option>
Expand Down Expand Up @@ -87,7 +86,7 @@ const sprints = await getCollection("sprints", ({ data }) => {
const cardElement = card as HTMLElement;
const pythonLevel = cardElement.getAttribute('data-python-level');

const levelMatch = !selectedLevel || pythonLevel === selectedLevel;
const levelMatch = !selectedLevel || pythonLevel === selectedLevel || pythonLevel === 'Any';

if (levelMatch) {
cardElement.style.display = 'block';
Expand Down