Skip to content

Commit

Permalink
Fix currency format
Browse files Browse the repository at this point in the history
  • Loading branch information
apbetioli committed Jun 1, 2024
1 parent 8115c8f commit 73198e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/(main)/courses/[courseSlug]/assets/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ const AssetPage = () => {
{asset.price > 0 && !user.paidAssetIds.includes(asset.id) ? (
<>
<span className="text-xl font-bold text-gray-700 dark:text-gray-200 md:text-3xl">
R$ {new Intl.NumberFormat('pt-BR').format(asset.price)}
R${' '}
{`${new Intl.NumberFormat('pt-BR', {
minimumFractionDigits: 2,
}).format(asset.price)}`}
</span>

<Button
Expand Down

0 comments on commit 73198e4

Please sign in to comment.