Expense filter: why is "All categories" showing all?


I am currently taking the react course. I was watching video 12 in the “Building Forms” Chapter and I realized when we made the expense filter that for some reason, the hard coded “All categories” option still shows all categories, despite going through the filter:

const visibleExpenses = selectedCategory
? expenses.filter((e) => e.category === selectedCategory)
: expenses;

Can anyone explain? Thank you!