Skip to content

Commit

Permalink
fix category ordering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
boyazeng committed Apr 25, 2024
1 parent eb30c31 commit 1f1371a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function App() {
// Filter tabs based on selected thresholds
useEffect(() => {
const filteredTabs: { [key: string]: Tab[] } = {};
for (const category in fullTabsByCategory) {
for (const { threshold, category } of thresholds) {
if (fullTabsByCategory.hasOwnProperty(category)) {
const thresholdIndex = thresholds.findIndex(threshold => threshold.category === category);
if (selectedThresholds.includes(thresholdIndex)) {
Expand Down

0 comments on commit 1f1371a

Please sign in to comment.