From 2f7ab1842916bc903e60231cbf45b934db2f2658 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 16 Feb 2022 18:48:59 -0800 Subject: [PATCH] Stop flooring inputs into formatMoney --- 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 dcc29465..0a1c5431 100644 --- a/web/components/amount-input.tsx +++ b/web/components/amount-input.tsx @@ -79,7 +79,7 @@ export function AmountInput(props: { Remaining balance -
{formatMoney(Math.floor(remainingBalance))}
+
{formatMoney(remainingBalance)}
{user.balance !== 1000 && }
diff --git a/web/components/profile-menu.tsx b/web/components/profile-menu.tsx index 50d2fcbc..1ded6378 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(Math.floor(user.balance)) : ' '} + {user ? formatMoney(user.balance) : ' '}