Revert "Stop flooring inputs into formatMoney"

This reverts commit 2f7ab18429.
This commit is contained in:
Austin Chen 2022-02-16 19:14:12 -08:00
parent 2f7ab18429
commit 87a33933e4
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ export function AmountInput(props: {
Remaining balance
</div>
<Row className="gap-4">
<div>{formatMoney(remainingBalance)}</div>
<div>{formatMoney(Math.floor(remainingBalance))}</div>
{user.balance !== 1000 && <AddFundsButton />}
</Row>
</Col>

View File

@ -87,7 +87,7 @@ function ProfileSummary(props: { user: User | undefined }) {
<div className="truncate text-left sm:w-32">
<div className="hidden sm:flex">{user?.name}</div>
<div className="text-sm text-gray-700">
{user ? formatMoney(user.balance) : ' '}
{user ? formatMoney(Math.floor(user.balance)) : ' '}
</div>
</div>
</Col>