Skip to content

Commit

Permalink
Merge pull request #735 from Chia-Network/organize-org-names-list
Browse files Browse the repository at this point in the history
fix: make all organizations first in list
  • Loading branch information
MichaelTaylor3D committed May 16, 2022
2 parents 8780903 + 9702399 commit 844472b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/form/SelectOrganizations.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ const SelectOrganizations = withTheme(
list.unshift(allOrganizationsItem);
}
return list.sort(function (a, b) {
const orgA = a.name.toUpperCase();
const orgB = b.name.toUpperCase();
const orgA = a.orgUid != 'all' && a.name.toUpperCase();
const orgB = b.orgUid != 'all' && b.name.toUpperCase();
if (orgA < orgB) {
return -1;
}
Expand Down

0 comments on commit 844472b

Please sign in to comment.