Skip to content

Commit

Permalink
Add commas
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Jan 7, 2024
1 parent 41430d3 commit a8d38f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/ui/modals/ShopModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import api from '../../api';
import * as cosmetics from '../../game/cosmetics.json'

import './ShopModal.scss'
import { buyFormats } from '../../helpers';
import { buyFormats, numberWithCommas } from '../../helpers';
let { skins } = cosmetics;

const basePath = '/assets/game/player/';
Expand Down Expand Up @@ -125,7 +125,7 @@ const ShopModal: React.FC<ShopModalProps> = ({ account }) => {
<h1 className='shop-title'>Shop</h1>

{account?.isLoggedIn ? (
<h1 className='shop-desc'>Balance: {account.gems}<img className={'gem'} src='/assets/game/gem.png' alt='Gems' width={30} height={30} /></h1>
<h1 className='shop-desc'>Balance: {numberWithCommas(account.gems)}<img className={'gem'} src='/assets/game/gem.png' alt='Gems' width={30} height={30} /></h1>
) : (
<h1 className='shop-desc'>Login or Signup to buy stuff from the shop!</h1>
)}
Expand Down

0 comments on commit a8d38f8

Please sign in to comment.