mirror of
https://github.com/mue/mue.git
synced 2026-07-18 06:24:17 +02:00
fix: update check in about page
This commit is contained in:
@@ -48,7 +48,7 @@ export default class About extends React.PureComponent {
|
||||
const newVersion = versionData[0].tag_name;
|
||||
|
||||
let updateMsg = this.language.version.no_update;
|
||||
if (Number(window.constants.VERSION) < newVersion) {
|
||||
if (Number(window.constants.VERSION.replaceAll('.', '')) < Number(newVersion.replaceAll('.', ''))) {
|
||||
updateMsg = `${this.language.version.update_available}: ${newVersion}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user