From 72b906da14b43982dfc6039c02214a27e48d7cba Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Sat, 18 Oct 2025 12:15:30 +0500 Subject: [PATCH] mobile: use currency symbol when possible --- apps/mobile/app/hooks/use-pricing-plans.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/mobile/app/hooks/use-pricing-plans.ts b/apps/mobile/app/hooks/use-pricing-plans.ts index 3e4c6d461..e39dee2f7 100644 --- a/apps/mobile/app/hooks/use-pricing-plans.ts +++ b/apps/mobile/app/hooks/use-pricing-plans.ts @@ -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"