mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
fix percentage calculation
This commit is contained in:
parent
a757fb3696
commit
dacaa86386
@ -157,7 +157,7 @@ export class KeyBackupViewModel extends ViewModel {
|
|||||||
get backupPercentage() {
|
get backupPercentage() {
|
||||||
const progress = this._progress.get();
|
const progress = this._progress.get();
|
||||||
if (progress) {
|
if (progress) {
|
||||||
return Math.round(progress.finished / progress.total) * 100;
|
return Math.round((progress.finished / progress.total) * 100);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user