Skip to content

Commit

Permalink
CMR-10146: Adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
william-valencia committed Nov 13, 2024
1 parent b8f62b0 commit 1a682dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ const validBbox = (bbox: string | number[]) => {
validLat(swLat) &&
validLon(neLon) &&
validLat(neLat) &&
// Ensure that number comparisons are used instead of string comparisons
Number(swLat) <= Number(neLat) &&
Number(swLon) <= Number(neLon)
);
Expand Down

0 comments on commit 1a682dd

Please sign in to comment.