diff --git a/src/components/atoms/Price/Conversion.tsx b/src/components/atoms/Price/Conversion.tsx index 499e897b0..30a29d895 100644 --- a/src/components/atoms/Price/Conversion.tsx +++ b/src/components/atoms/Price/Conversion.tsx @@ -35,7 +35,7 @@ export default function Conversion({ const { eur } = data['ocean-protocol'] const converted = eur * Number(price) - setPriceEur(`${formatCurrency(converted, 'EUR', 'en', true)}`) + setPriceEur(`${formatCurrency(converted, 'EUR', undefined, true)}`) } useEffect(() => { diff --git a/src/components/atoms/Price/PriceUnit.tsx b/src/components/atoms/Price/PriceUnit.tsx index fbe424817..dfbe5fac7 100644 --- a/src/components/atoms/Price/PriceUnit.tsx +++ b/src/components/atoms/Price/PriceUnit.tsx @@ -27,7 +27,9 @@ export default function PriceUnit({ return (
- {formatCurrency(Number(price), '', 'en', false, true)}{' '} + {Number.isInteger(Number(price)) + ? price + : formatCurrency(Number(price), '', undefined, false, true)}{' '} {symbol || 'OCEAN'} {conversion && }
diff --git a/src/components/molecules/Wallet/Details.tsx b/src/components/molecules/Wallet/Details.tsx index 9009345de..149fb214a 100644 --- a/src/components/molecules/Wallet/Details.tsx +++ b/src/components/molecules/Wallet/Details.tsx @@ -17,7 +17,7 @@ export default function Details(): ReactElement { {Object.entries(balance).map(([key, value]) => (
  • {key.toUpperCase()}{' '} - {formatCurrency(value, '', 'en', true, true)} + {formatCurrency(value, '', undefined, true, true)} {key === 'ocean' && }
  • ))}