From e41f646b425aab0bfb7ad3a906a0b274267f4e1c Mon Sep 17 00:00:00 2001 From: SirSaltyy <104849031+SirSaltyy@users.noreply.github.com> Date: Thu, 5 May 2022 22:19:47 -0400 Subject: [PATCH] Remove all spaces between M$ and the associated number (#134) * Remove all spaces between M$ and the associated number * Update index.tsx --- common/util/format.ts | 2 +- web/components/feed-create.tsx | 2 +- web/pages/charity/index.tsx | 3 +-- 3 files changed, 3 insertions(+), 4 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[] }) {