Skip to content

Commit

Permalink
Format currency
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiolcastro committed May 15, 2020
1 parent f150dc3 commit 9da7e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Profile/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Profile({

function renderIncidents() {
return incidents.map((incident) => (
<li>
<li key={incident.id}>
<strong>CASO:</strong>
<p>{incident.title}</p>

Expand All @@ -30,7 +30,7 @@ function Profile({
<p>
R$
{' '}
{incident.value}
{Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }).format(incident.value)}
</p>

<button type="button">
Expand Down

0 comments on commit 9da7e72

Please sign in to comment.