Skip to content

Commit

Permalink
Fix roundness
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultJRD committed Aug 10, 2023
1 parent af95d02 commit 0bf2a33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Leaderboard/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Breakpoints, NavigationConstants } from 'constant';
import { useWindowSize } from 'hooks';
import { LeaderboardItemModel, LumWalletModel } from 'models';
import { DenomsUtils, I18n, KeplrUtils, NumbersUtils, StringsUtils } from 'utils';
import numeral from 'numeral';

import './Leaderboard.scss';

Expand Down Expand Up @@ -85,7 +86,7 @@ const Leaderboard = (props: Props) => {
</div>
{price ? (
<div className='usd-amount'>
$<SmallerDecimal nb={NumbersUtils.formatTo6digit(amount * price)} />
$<SmallerDecimal nb={numeral(amount * price).format('0,0.00')} />
</div>
) : null}
</div>
Expand Down

0 comments on commit 0bf2a33

Please sign in to comment.