Skip to content

Commit

Permalink
Update version check get changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Aug 8, 2024
1 parent eb36a0b commit 9345cb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/plugins/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ export async function checkForUpdate() {

const latestVersion = releases[0]
const currentVersionMinor = currentVersion.minor
const currentVersionMajor = currentVersion.major
// Show all releases with the same minor version and lower or equal total version
const releasesToShow = releases.filter((release) => {
return release.minor == currentVersionMinor && release.total <= currentVersion.total
return release.major == currentVersionMajor && release.minor == currentVersionMinor && release.total <= currentVersion.total
})

return {
Expand Down

0 comments on commit 9345cb3

Please sign in to comment.