fix: update formatting

This commit is contained in:
Jesse Egbosionu
2024-02-15 20:33:26 +01:00
parent 47a99fb88b
commit 6fc02743fe
3 changed files with 25 additions and 8 deletions
+2 -2
View File
@@ -48,10 +48,10 @@ export default function Rates() {
{loading ? (
<div><p>Loading...</p></div>
) : data && (
<div>
<div className='currency__container'>
{data.map(item => (
<p key={item.provider} className={item.bestRate ? 'best-rate' : ''}>
<a href={item.href}>{item.provider}: </a>{formatCurrency(item.rate)}
<a href={item.href}>{item.provider}:</a><span className='rate'>{formatCurrency(item.rate)}</span>
</p>
))}
</div>