From 87a33933e41c706e51f68e4a0448377513d013d4 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 16 Feb 2022 19:14:12 -0800 Subject: [PATCH] Revert "Stop flooring inputs into formatMoney" This reverts commit 2f7ab1842916bc903e60231cbf45b934db2f2658. --- web/components/amount-input.tsx | 2 +- web/components/profile-menu.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/amount-input.tsx b/web/components/amount-input.tsx index 0a1c5431..dcc29465 100644 --- a/web/components/amount-input.tsx +++ b/web/components/amount-input.tsx @@ -79,7 +79,7 @@ export function AmountInput(props: { Remaining balance -
{formatMoney(remainingBalance)}
+
{formatMoney(Math.floor(remainingBalance))}
{user.balance !== 1000 && }
diff --git a/web/components/profile-menu.tsx b/web/components/profile-menu.tsx index 1ded6378..50d2fcbc 100644 --- a/web/components/profile-menu.tsx +++ b/web/components/profile-menu.tsx @@ -87,7 +87,7 @@ function ProfileSummary(props: { user: User | undefined }) {
{user?.name}
- {user ? formatMoney(user.balance) : ' '} + {user ? formatMoney(Math.floor(user.balance)) : ' '}