errata fix

This commit is contained in:
fbsanchez 2022-02-23 17:44:51 +01:00
parent eee355ff00
commit 5d5b0cb553
1 changed files with 4 additions and 4 deletions

View File

@ -207,7 +207,7 @@ function form_upload(url, auth, current_package) {
let server_update = res.server_update;
let current_version = Math.round(parseFloat(current_package));
let target_version = Math.round(parseFloat(current_package)) + 1;
let target_patch = Math.round(parseFloat(current_package)) + 0.1;
let target_patch = parseFloat(current_package) + 0.1;
if (number_update === null) {
umConfirm({
@ -225,9 +225,9 @@ function form_upload(url, auth, current_package) {
}
});
} else if (
Math.round(parseFloat(number_update)) != target_version &&
Math.round(parseFloat(number_update)) != target_patch &&
Math.round(parseFloat(number_update)) != current_version
parseFloat(number_update) != target_version &&
parseFloat(number_update) != target_patch &&
parseFloat(number_update) != current_version
) {
if (ImSureWhatImDoing == undefined || ImSureWhatImDoing == false) {
umConfirm({