Remove all spaces between M$ and the associated number
This commit is contained in:
parent
2e214cab7a
commit
f8be6a3e2d
|
@ -10,7 +10,7 @@ const formatter = new Intl.NumberFormat('en-US', {
|
||||||
export function formatMoney(amount: number) {
|
export function formatMoney(amount: number) {
|
||||||
const newAmount = Math.round(amount) === 0 ? 0 : Math.floor(amount) // handle -0 case
|
const newAmount = Math.round(amount) === 0 ? 0 : Math.floor(amount) // handle -0 case
|
||||||
return (
|
return (
|
||||||
ENV_CONFIG.moneyMoniker + ' ' + formatter.format(newAmount).replace('$', '')
|
ENV_CONFIG.moneyMoniker + formatter.format(newAmount).replace('$', '')
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ export function FeedPromo(props: { hotContracts: Contract[] }) {
|
||||||
<div className="mb-4 text-gray-500">
|
<div className="mb-4 text-gray-500">
|
||||||
Find markets on any topic imaginable. Or create your own!
|
Find markets on any topic imaginable. Or create your own!
|
||||||
<br />
|
<br />
|
||||||
Sign up to get M$ 1,000 and start trading.
|
Sign up to get M$1,000 and start trading.
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<Spacer h={6} />
|
<Spacer h={6} />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user