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

View File

@@ -10,4 +10,4 @@ export const FEEDBACK_FORM = 'https://api.formcake.com/api/form/349b56cb-7e2b-40
export const DDG_PROXY = 'https://external-content.duckduckgo.com/iu/?u=';
export const OFFLINE_IMAGES = 20;
export const BETA_VERSION = false;
export const VERSION = '5.0';
export const VERSION = '5.0.0';