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