diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-04-09 13:49:29 +0200 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-05-28 13:25:30 +0200 |
| commit | bd9be4949413f379695a04c188e8e7e3fa86c958 (patch) | |
| tree | 085bdf0c7445f3f3846b04fb1a2861acb9b38d3d | |
| parent | 47b327ee3dabd037164111645e7a6a7fad489a33 (diff) | |
| download | mullvadvpn-bd9be4949413f379695a04c188e8e7e3fa86c958.tar.xz mullvadvpn-bd9be4949413f379695a04c188e8e7e3fa86c958.zip | |
Update logic for when update should be installed manually
When the automatic start fails we should inform the user that
they can install the update manually. However when the manual
start fails, then we must treat it as an error, and as such this
scenario should not inform the user to install the update manually.
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/hooks/useShouldAppUpgradeInstallManually.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/hooks/useShouldAppUpgradeInstallManually.ts b/desktop/packages/mullvad-vpn/src/renderer/hooks/useShouldAppUpgradeInstallManually.ts index 06f9095bd6..9f8c96e982 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/hooks/useShouldAppUpgradeInstallManually.ts +++ b/desktop/packages/mullvad-vpn/src/renderer/hooks/useShouldAppUpgradeInstallManually.ts @@ -13,10 +13,7 @@ export const useShouldAppUpgradeInstallManually = () => { if (hasAppUpgradeVerifiedInstallerPath) { if (hasAppUpgradeError) { - if ( - appUpgradeError === 'START_INSTALLER_AUTOMATIC_FAILED' || - appUpgradeError === 'START_INSTALLER_FAILED' - ) { + if (appUpgradeError === 'START_INSTALLER_AUTOMATIC_FAILED') { return true; } } else { |
