Fallback to user.balance

This commit is contained in:
Austin Chen 2022-04-01 13:54:43 -07:00
parent aa37d3afde
commit a71c2226d2

View File

@ -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>