Skip to content

Commit

Permalink
fix(web): add optionnal chaining for quotas in DB (#13695)
Browse files Browse the repository at this point in the history
ref: MANAGER-15730

Signed-off-by: Antony MARION <[email protected]>
  • Loading branch information
antonymarion authored and ghyenne committed Nov 29, 2024
1 parent c1e7d5a commit e1334f8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ export default class HostingGeneralInformationsCtrl {
this.$scope.pendingTasks.length === 0;

const quotaUsed = this.$scope.convertBytesSize(
this.$scope.hosting.quotaUsed.value,
this.$scope.hosting.quotaUsed.unit,
this.$scope.hosting?.quotaUsed.value,
this.$scope.hosting?.quotaUsed.unit,
QUOTA_DECIMAL_PRECISION,
);
const quotaSize = this.$scope.convertBytesSize(
this.$scope.hosting.quotaSize.value,
this.$scope.hosting.quotaSize.unit,
this.$scope.hosting?.quotaSize.value,
this.$scope.hosting?.quotaSize.unit,
QUOTA_DECIMAL_PRECISION,
);

Expand Down

0 comments on commit e1334f8

Please sign in to comment.