fix: update check in about page

This commit is contained in:
David Ralph
2021-04-30 18:58:58 +01:00
parent 1af688c489
commit 90927c9e8f
2 changed files with 2 additions and 2 deletions

View File

@@ -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}`;
}