Update version check get changelogs

This commit is contained in:
advplyr 2024-08-08 17:04:50 -05:00
parent eb36a0b3dd
commit 9345cb3934

View File

@ -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 {