mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
org billing settings setup
This commit is contained in:
@@ -170,6 +170,11 @@ export class UserBillingComponent implements OnInit {
|
||||
}
|
||||
|
||||
get storagePercentage() {
|
||||
return this.billing != null ? +(100 * (this.billing.storageGb / this.billing.maxStorageGb)).toFixed(2) : 0;
|
||||
return this.billing != null && this.billing.maxStorageGb ?
|
||||
+(100 * (this.billing.storageGb / this.billing.maxStorageGb)).toFixed(2) : 0;
|
||||
}
|
||||
|
||||
get storageProgressWidth() {
|
||||
return this.storagePercentage < 5 ? 5 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user