Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
benlister-okta committed Jul 24, 2024
1 parent 3347020 commit ba56e6b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export const InnerRoadmapTable = () => {
if (sort && sort.length > 0) {
filteredData.sort((a, b) => {
for (const { id, desc } of sort) {
const aValue = a[id as keyof Planet];
const bValue = b[id as keyof Planet];
const aValue: string | Date = a[id as keyof OdysseyComponent];
const bValue: string | Date = b[id as keyof OdysseyComponent];

if (aValue < bValue) return desc ? 1 : -1;
if (aValue > bValue) return desc ? -1 : 1;
Expand Down

0 comments on commit ba56e6b

Please sign in to comment.