mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
mobile: use currency symbol when possible
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user