diff --git a/app/server-components/Licenses/LicenseRewardsPoA.tsx b/app/server-components/Licenses/LicenseRewardsPoA.tsx index 34f4abe..4835800 100644 --- a/app/server-components/Licenses/LicenseRewardsPoA.tsx +++ b/app/server-components/Licenses/LicenseRewardsPoA.tsx @@ -42,10 +42,10 @@ export default async function LicenseRewardsPoA({ label="Rewards (PoA)" value={
- {!!rewards ? '$R1 ' : ''} {rewards === undefined ? '...' - : parseFloat(Number(formatUnits(rewards ?? 0n, 18)).toFixed(3)).toLocaleString()} + : parseFloat(Number(formatUnits(rewards ?? 0n, 18)).toFixed(2)).toLocaleString()} + {!!rewards ? '$R1 ' : ''}
} widthClasses="min-w-[280px]" diff --git a/app/server-components/main-cards/LicenseCard.tsx b/app/server-components/main-cards/LicenseCard.tsx index f828975..4e8ec16 100644 --- a/app/server-components/main-cards/LicenseCard.tsx +++ b/app/server-components/main-cards/LicenseCard.tsx @@ -115,12 +115,12 @@ export default async function LicenseCard({ license, licenseType, licenseId, own }> - + {licenseType === 'ND' && ( @@ -128,12 +128,12 @@ export default async function LicenseCard({ license, licenseType, licenseId, own label="Rewards (PoAI)" value={
- {!!license.r1PoaiRewards ? '$R1 ' : ''} {license.r1PoaiRewards === undefined ? '...' : parseFloat( - Number(formatUnits(license.r1PoaiRewards ?? 0n, 18)).toFixed(3), + Number(formatUnits(license.r1PoaiRewards ?? 0n, 18)).toFixed(2), ).toLocaleString()} + {!!license.r1PoaiRewards ? '$R1 ' : ''}
} isSmall