Skip to content

Commit

Permalink
Merge pull request #434 from DeXter-on-Radix/fix-pair-selector-sorting
Browse files Browse the repository at this point in the history
[BUGFIX] Fix pairSelector sorting
  • Loading branch information
dcts authored Jun 3, 2024
2 parents 8068161 + 95019f4 commit b73337f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/PairSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export function PairSelector() {
} else {
inputRef.current?.blur();
// Restore filtered options when the menu closes
setFilteredOptions(options);
setFilteredOptions(sortOptions(options));
setHighlightedIndex(-1);
}
}, [isOpen, options, setFilteredOptions, setHighlightedIndex]);
Expand Down

0 comments on commit b73337f

Please sign in to comment.