From dacaa86386e4ac64321deec567b09a34f4feeaa9 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 31 Jan 2022 16:22:22 +0100 Subject: [PATCH] fix percentage calculation --- src/domain/session/settings/KeyBackupViewModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/settings/KeyBackupViewModel.js b/src/domain/session/settings/KeyBackupViewModel.js index d88cd797..391aa09e 100644 --- a/src/domain/session/settings/KeyBackupViewModel.js +++ b/src/domain/session/settings/KeyBackupViewModel.js @@ -157,7 +157,7 @@ export class KeyBackupViewModel extends ViewModel { get backupPercentage() { const progress = this._progress.get(); if (progress) { - return Math.round(progress.finished / progress.total) * 100; + return Math.round((progress.finished / progress.total) * 100); } return 0; }