Merge pull request #8261 from overleaf/tm-show-correct-price-in-change-plans-list

Show correct prices in change plans list on subscription dashboard

GitOrigin-RevId: 194b516bae92564d33f50e1c0035d21b2ba246a9
This commit is contained in:
Thomas
2022-06-06 08:03:49 +00:00
committed by Copybot
parent b12c108522
commit 11fddee8e4
2 changed files with 29 additions and 0 deletions
@@ -272,6 +272,11 @@ function buildUsersSubscriptionViewModel(user, callback) {
pendingSubscriptionTax,
recurlySubscription.currency
)
personalSubscription.recurly.currentPlanDisplayPrice =
SubscriptionFormatters.formatPrice(
recurlySubscription.unit_amount_in_cents + addOnPrice + tax,
recurlySubscription.currency
)
const pendingTotalLicenses =
(pendingPlan.membersLimit || 0) + pendingAdditionalLicenses
personalSubscription.recurly.pendingAdditionalLicenses =