Skip to content

Commit

Permalink
Climbing: Fix local compare error
Browse files Browse the repository at this point in the history
  • Loading branch information
jvaclavik committed Nov 25, 2024
1 parent 149f587 commit f087f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FeaturePanel/Climbing/utils/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const toggleElementInArray = <T>(array: Array<T>, element: T) => {
};

export const naturalCompare = (a, b) => {
return a.localeCompare(b, undefined, {
return a?.localeCompare(b, undefined, {
numeric: true,
sensitivity: 'base',
});
Expand Down

0 comments on commit f087f03

Please sign in to comment.