Stop flooring inputs into formatMoney
This commit is contained in:
parent
a2e4893be8
commit
2f7ab18429
|
@ -79,7 +79,7 @@ export function AmountInput(props: {
|
|||
Remaining balance
|
||||
</div>
|
||||
<Row className="gap-4">
|
||||
<div>{formatMoney(Math.floor(remainingBalance))}</div>
|
||||
<div>{formatMoney(remainingBalance)}</div>
|
||||
{user.balance !== 1000 && <AddFundsButton />}
|
||||
</Row>
|
||||
</Col>
|
||||
|
|
|
@ -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(Math.floor(user.balance)) : ' '}
|
||||
{user ? formatMoney(user.balance) : ' '}
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
Loading…
Reference in New Issue
Block a user