Fallback to user.balance
This commit is contained in:
parent
aa37d3afde
commit
a71c2226d2
|
@ -35,7 +35,9 @@ export function ProfileSummary(props: { user: User | undefined }) {
|
||||||
<div className="truncate text-left">
|
<div className="truncate text-left">
|
||||||
<div>{user?.name}</div>
|
<div>{user?.name}</div>
|
||||||
<div className="text-sm">
|
<div className="text-sm">
|
||||||
{user ? formatMoney(Math.floor(loadFakeBalance())) : ' '}
|
{user
|
||||||
|
? formatMoney(Math.floor(loadFakeBalance() || user.balance))
|
||||||
|
: ' '}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user