We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd688fc commit 4ae5da0Copy full SHA for 4ae5da0
apps/nextjs/app/[lang]/[pathPrefix]/page.tsx
@@ -15,6 +15,7 @@ import remarkParse from 'remark-parse'
15
import remarkRehype from 'remark-rehype'
16
import rehypeStringify from 'rehype-stringify'
17
import { unified } from 'unified'
18
+import { formatUnits } from 'viem'
19
20
type PageProps = {
21
params: Promise<{
@@ -124,7 +125,7 @@ export default function Page({ params }: PageProps) {
124
125
{amountScholarship !== null && (
126
<div className="text-sm text-gray-600 font-medium">
127
{lang === 'es' ? 'Total en USDT ganado: ' : 'Total USDT earned: '}
- ${amountScholarship.toFixed(2)} USDT
128
+ ${formatUnits(BigInt(amountScholarship), 6)} USDT
129
</div>
130
)}
131
0 commit comments