Skip to content

Commit 41302d7

Browse files
authored
Merge pull request #179 from WildCodeSchool/feature/little-fix
format number
2 parents f90dcf8 + 5e4e7f8 commit 41302d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/frontend/web/src/components/line-shop-creature.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useState } from 'react';
33
import type { Enclosure } from '@app/api';
44

55
import { useGameInfoContext } from '@/contexts/game-info-context';
6+
import { formatNumber } from '@/utils/number-formatter';
67

78
import Moon from '../assets/images/icons-buttons/moon.png';
89
import ButtonBuy from './button-buy';
@@ -106,7 +107,7 @@ export default function LineShopCreature({ creature }: LineShopCreatureProps) {
106107
isGrayscale={!hasEnoughMoons}
107108
>
108109
<div className='flex items-center justify-center gap-0.5 p-0.5'>
109-
<p className=''>{creature.price}</p>
110+
<p className=''>{formatNumber(creature.price)}</p>
110111
<img className='w-4' src={Moon} alt='money' />
111112
</div>
112113
</ButtonBuy>

0 commit comments

Comments
 (0)