From a71c2226d22430ef8024890e07abfeacbe54fe52 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 1 Apr 2022 13:54:43 -0700 Subject: [PATCH] Fallback to user.balance --- web/components/nav/profile-menu.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/nav/profile-menu.tsx b/web/components/nav/profile-menu.tsx index cd258280..42d2a0b1 100644 --- a/web/components/nav/profile-menu.tsx +++ b/web/components/nav/profile-menu.tsx @@ -35,7 +35,9 @@ export function ProfileSummary(props: { user: User | undefined }) {
{user?.name}
- {user ? formatMoney(Math.floor(loadFakeBalance())) : ' '} + {user + ? formatMoney(Math.floor(loadFakeBalance() || user.balance)) + : ' '}