Skip to content

Commit

Permalink
fix non-numeric-ness of versions during comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Connoropolous committed Sep 19, 2023
1 parent 38e916c commit 7203f9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/hooks/useVersionChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ function isVersionOutOfDate(
)
return false

const currentVersionParts = currentVersion.split('.')
const latestVersionParts = latestVersion.split('.')
const currentVersionParts = currentVersion.split('.').map(Number)
const latestVersionParts = latestVersion.split('.').map(Number)
if (currentVersionParts[0] < latestVersionParts[0]) {
return true
} else if (currentVersionParts[0] === latestVersionParts[0]) {
Expand Down

0 comments on commit 7203f9f

Please sign in to comment.