Skip to content

Commit

Permalink
fix wrong version check
Browse files Browse the repository at this point in the history
  • Loading branch information
seydx committed Jan 10, 2022
1 parent 73d321b commit 715780e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui/src/views/Settings/subpages/system.vue
Original file line number Diff line number Diff line change
Expand Up @@ -443,15 +443,15 @@ export default {
});
this.npmPackageName = pkg.data.name;
this.latestVersion = relatedVersions[0];
this.latestVersion = relatedVersions[0].value || relatedVersions[0];
this.updateAvailable = compareVersions.compare(this.latestVersion, this.currentVersion, '>');
this.$watch('config', this.configWatcher, { deep: true });
this.loading = false;
this.loadingProgress = false;
} catch (err) {
console.log(err.message);
console.log(err);
this.$toast.error(err.message);
}
},
Expand Down
2 changes: 1 addition & 1 deletion ui/src/widgets/status/widget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
});
this.npmPackageName = pkg.data.name;
this.latestVersion = relatedVersions[0];
this.latestVersion = relatedVersions[0].value || relatedVersions[0];
this.updateAvailable = compareVersions.compare(this.latestVersion, this.currentVersion, '>');
this.loading = false;
Expand Down

0 comments on commit 715780e

Please sign in to comment.