Closed kale-stew closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/kale-stew/climb-log/2yhxdsBrjAie5o2g6jiC752TEhYH
✅ Preview: https://climb-log-git-task-improve-range-toggle-kale-stew.vercel.app
One corner case needs to be addressed: if a user unselects filters to the point that it goes back to 'All Ranges' (selectedFilters.length === 0), the data doesn't get reset. We can abstract the current cleanup fn to an agnostic one and then trigger it for each of these cases, but waiting to do that so we can push the improved legibility first
When you click on a range, it will now unselect if selected