1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

Resolve the seat adjustment issue (#10265)

This commit is contained in:
cyprain-okeke
2024-08-13 12:36:40 +01:00
committed by GitHub
parent a559a113d3
commit cdc82f13b0
2 changed files with 10 additions and 7 deletions

View File

@@ -99,11 +99,12 @@ export class AdjustSubscription implements OnInit, OnDestroy {
: 0;
}
get adjustedSeatTotal(): number {
return this.additionalSeatCount * this.seatPrice;
get maxSeatTotal(): number {
return Math.abs((this.adjustSubscriptionForm.value.newMaxSeats ?? 0) * this.seatPrice);
}
get maxSeatTotal(): number {
return this.additionalMaxSeatCount * this.seatPrice;
get seatTotalCost(): number {
const totalSeat = Math.abs(this.adjustSubscriptionForm.value.newSeatCount * this.seatPrice);
return totalSeat;
}
}