Skip to content

Commit

Permalink
fix(web-ui): fix new version notification conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Jan 22, 2025
1 parent 5af21bd commit 1b1fb5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src_assets/common/assets/web/sunshine_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class SunshineVersion {
return false;
}
for (let i = 0; i < Math.min(3, this.versionParts.length, otherVersionParts.length); i++) {
if (this.versionParts[i] > otherVersionParts[i]) {
return true;
if (this.versionParts[i] !== otherVersionParts[i]) {
return this.versionParts[i] > otherVersionParts[i];
}
}
return false;
Expand Down

0 comments on commit 1b1fb5f

Please sign in to comment.