From 82e0b14a13544dc9125fc40f3ad3bfe2febcf878 Mon Sep 17 00:00:00 2001 From: jat Date: Tue, 19 Nov 2024 13:52:51 +0100 Subject: [PATCH] Clarify the source of `rawPrice` in `getSubscriptionPriceWithCurrency()` --- src/common/subscription/PriceUtils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/subscription/PriceUtils.ts b/src/common/subscription/PriceUtils.ts index 235c8c76cfc6..a47f5090e38b 100644 --- a/src/common/subscription/PriceUtils.ts +++ b/src/common/subscription/PriceUtils.ts @@ -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()