Stop flooring inputs into formatMoney
This commit is contained in:
parent
a2e4893be8
commit
2f7ab18429
|
@ -79,7 +79,7 @@ export function AmountInput(props: {
|
||||||
Remaining balance
|
Remaining balance
|
||||||
</div>
|
</div>
|
||||||
<Row className="gap-4">
|
<Row className="gap-4">
|
||||||
<div>{formatMoney(Math.floor(remainingBalance))}</div>
|
<div>{formatMoney(remainingBalance)}</div>
|
||||||
{user.balance !== 1000 && <AddFundsButton />}
|
{user.balance !== 1000 && <AddFundsButton />}
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
|
@ -87,7 +87,7 @@ function ProfileSummary(props: { user: User | undefined }) {
|
||||||
<div className="truncate text-left sm:w-32">
|
<div className="truncate text-left sm:w-32">
|
||||||
<div className="hidden sm:flex">{user?.name}</div>
|
<div className="hidden sm:flex">{user?.name}</div>
|
||||||
<div className="text-sm text-gray-700">
|
<div className="text-sm text-gray-700">
|
||||||
{user ? formatMoney(Math.floor(user.balance)) : ' '}
|
{user ? formatMoney(user.balance) : ' '}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user