From f8be6a3e2d336c19e2d235231705687c3d267f68 Mon Sep 17 00:00:00 2001 From: SirSaltyy Date: Thu, 5 May 2022 15:29:38 -0400 Subject: [PATCH] Remove all spaces between M$ and the associated number --- common/util/format.ts | 2 +- web/components/feed-create.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/util/format.ts b/common/util/format.ts index e4ac0bd7..765c34d9 100644 --- a/common/util/format.ts +++ b/common/util/format.ts @@ -10,7 +10,7 @@ const formatter = new Intl.NumberFormat('en-US', { export function formatMoney(amount: number) { const newAmount = Math.round(amount) === 0 ? 0 : Math.floor(amount) // handle -0 case return ( - ENV_CONFIG.moneyMoniker + ' ' + formatter.format(newAmount).replace('$', '') + ENV_CONFIG.moneyMoniker + formatter.format(newAmount).replace('$', '') ) } diff --git a/web/components/feed-create.tsx b/web/components/feed-create.tsx index 0a0c6902..ac3fd562 100644 --- a/web/components/feed-create.tsx +++ b/web/components/feed-create.tsx @@ -37,7 +37,7 @@ export function FeedPromo(props: { hotContracts: Contract[] }) {
Find markets on any topic imaginable. Or create your own!
- Sign up to get M$ 1,000 and start trading. + Sign up to get M$1,000 and start trading.