Skip to content

Commit

Permalink
move devices with transport up in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 20, 2023
1 parent c35c0fa commit 313dc91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/specification/DeviceSpecificationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ export default function DeviceSpecificationList(props: {
-(a.tags?.indexOf("kit") > -1 ? 1 : 0) +
(b.tags?.indexOf("kit") > -1 ? 1 : 0)
if (c) return c
// device with transports
c = -(a.transport ? 1 : 0) + (b.transport ? 1 : 0)
if (c) return c
// use ec30 shape
c = -(isEC30(a.shape) ? 1 : 0) + (isEC30(b.shape) ? 1 : 0)
if (c) return c
Expand Down

0 comments on commit 313dc91

Please sign in to comment.