summaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-04-09 13:34:40 +0200
committerSebastian Holmin <sebastian.holmin@mullvad.net>2025-05-28 13:25:30 +0200
commit736054bd9e33bb63c7deabc7352a2180ff8c49c8 (patch)
treea3155e47e55b6327bd47c5e42f553625185d18d2 /desktop
parentce47bcd48fb3cfea9b134fd3cd4a1c4e0731dad5 (diff)
downloadmullvadvpn-736054bd9e33bb63c7deabc7352a2180ff8c49c8.tar.xz
mullvadvpn-736054bd9e33bb63c7deabc7352a2180ff8c49c8.zip
Remove fallback to 0 for when timeLeft is not set
Diffstat (limited to 'desktop')
-rw-r--r--desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts2
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 };
}