Skip to content

Commit

Permalink
Clarify the source of rawPrice in getSubscriptionPriceWithCurrency()
Browse files Browse the repository at this point in the history
  • Loading branch information
rezbyte committed Nov 19, 2024
1 parent 1012f45 commit 82e0b14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/subscription/PriceUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ export class PriceAndConfigProvider {
: this.getMonthlySubscriptionPrice(subscription, type)
}

// Returns the subscription price with the currency formatting on iOS and as a plain period seperated number on other platforms
/**
* Returns the subscription price with the currency formatting on iOS and as a plain period seperated number on other platforms
*
* The `rawPrice` is taken from Tuta servers regardless of whether the client is on iOS
*/
getSubscriptionPriceWithCurrency(paymentInterval: PaymentInterval, subscription: PlanType, type: UpgradePriceType): SubscriptionPrice {
const price = this.getSubscriptionPrice(paymentInterval, subscription, type)
const rawPrice = price.toString()
Expand Down

0 comments on commit 82e0b14

Please sign in to comment.