mobile: use currency symbol when possible

This commit is contained in:
Ammar Ahmed
2025-10-18 12:15:30 +05:00
parent 6db8c2fac2
commit 72b906da14

View File

@@ -270,7 +270,9 @@ const usePricingPlans = (options?: PricingPlansOptions) => {
if (Platform.OS === "android") {
if (isGithubRelease) {
if (!(product as Plan)?.price) return null;
return `${(product as Plan).price.currency} ${
return `${
(product as Plan).currencySymbol || (product as Plan).currency
} ${
(product as Plan).period === "yearly"
? (product as Plan).price.gross
: (product as Plan).period === "5-year"
@@ -599,7 +601,9 @@ const usePricingPlans = (options?: PricingPlansOptions) => {
if (isGithubRelease) {
if (!(product as Plan)?.price) return null;
return `${(product as Plan).price.currency} ${
return `${
(product as Plan).currencySymbol || (product as Plan).currency
} ${
(product as Plan).period === "yearly"
? ((product as Plan).price.gross / 12).toFixed(2)
: (product as Plan).period === "5-year"