diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-04-09 13:34:40 +0200 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-05-28 13:25:30 +0200 |
| commit | 736054bd9e33bb63c7deabc7352a2180ff8c49c8 (patch) | |
| tree | a3155e47e55b6327bd47c5e42f553625185d18d2 | |
| parent | ce47bcd48fb3cfea9b134fd3cd4a1c4e0731dad5 (diff) | |
| download | mullvadvpn-736054bd9e33bb63c7deabc7352a2180ff8c49c8.tar.xz mullvadvpn-736054bd9e33bb63c7deabc7352a2180ff8c49c8.zip | |
Remove fallback to 0 for when timeLeft is not set
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts b/desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts index 0c1a45b9cf..64c805c3b9 100644 --- a/desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts +++ b/desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts @@ -742,7 +742,7 @@ export function convertFromAppUpgradeEvent(data: grpcTypes.AppUpgradeEvent): Dae downloadProgressData.getTimeLeft(), ]; - const timeLeft = timeLeftDuration?.getSeconds() || 0; + const timeLeft = timeLeftDuration?.getSeconds(); return { type: 'APP_UPGRADE_STATUS_DOWNLOAD_PROGRESS', server, progress, timeLeft }; } |
