Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: use currency symbol when possible

Ammar Ahmed72b906da14b4
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"