Skip to content

Commit 665d67e

Browse files
committed
fix: R1 rewards formatting
1 parent 95edd29 commit 665d67e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/server-components/Licenses/LicenseRewardsPoA.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default async function LicenseRewardsPoA({
4545
{rewards === undefined
4646
? '...'
4747
: parseFloat(Number(formatUnits(rewards ?? 0n, 18)).toFixed(2)).toLocaleString()}
48-
{!!rewards ? '$R1 ' : ''}
48+
{!!rewards ? ' $R1' : ''}
4949
</div>
5050
}
5151
widthClasses="min-w-[280px]"

app/server-components/Licenses/PoA.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ export default async function PoA({
1212
const getStats = () => (
1313
<>
1414
<div className="col gap-[5px]">
15-
<div className="text-[15px] font-medium leading-none text-slate-500">Max Remaining</div>
15+
<div className="text-[15px] font-medium leading-none text-slate-500">Max. Remaining</div>
1616
<div className="font-semibold leading-none">
1717
{parseFloat(Number(formatUnits(totalAssignedAmount - totalClaimedAmount, 18)).toFixed(2)).toLocaleString()}
1818
</div>
1919
</div>
2020

2121
<div className="col gap-[5px]">
22-
<div className="text-[15px] font-medium leading-none text-slate-500">Max Allocation</div>
22+
<div className="text-[15px] font-medium leading-none text-slate-500">Max. Allocation</div>
2323
<div className="font-semibold leading-none">
2424
{parseFloat(Number(formatUnits(totalAssignedAmount ?? 0n, 18)).toFixed(2)).toLocaleString()}
2525
</div>

app/server-components/main-cards/LicenseCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default async function LicenseCard({ license, licenseType, licenseId, own
133133
: parseFloat(
134134
Number(formatUnits(license.r1PoaiRewards ?? 0n, 18)).toFixed(2),
135135
).toLocaleString()}
136-
{!!license.r1PoaiRewards ? '$R1 ' : ''}
136+
{!!license.r1PoaiRewards ? ' $R1' : ''}
137137
</div>
138138
}
139139
isSmall

0 commit comments

Comments
 (0)