Skip to content

Commit

Permalink
Merge pull request balena-io#3711 from balena-io/fix-auto-update
Browse files Browse the repository at this point in the history
patch: Fix auto update
  • Loading branch information
bulldozer-balena[bot] authored Feb 22, 2022
2 parents 6774bf7 + a520194 commit f6aeb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gui/etcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function checkForUpdates(interval: number) {
const release = await autoUpdater.checkForUpdates();
const isOutdated =
semver.compare(release.updateInfo.version, version) > 0;
const shouldUpdate = release.updateInfo.stagingPercentage || 0 > 0;
const shouldUpdate = release.updateInfo.stagingPercentage !== 0; // undefinded (default) means 100%
if (shouldUpdate && isOutdated) {
await autoUpdater.downloadUpdate();
packageUpdated = true;
Expand Down

0 comments on commit f6aeb52

Please sign in to comment.