- {user.avatarUrl &&

}
+ {user?.avatarUrl ? (
+

+ ) : (
+
+ )}
-
{user.name}
+
{user?.name}
- {formatMoney(Math.floor(user.balance))}
+ {user ? formatMoney(Math.floor(user.balance)) : ' '}
diff --git a/web/pages/home.tsx b/web/pages/home.tsx
index 7025b840..2ebba4a1 100644
--- a/web/pages/home.tsx
+++ b/web/pages/home.tsx
@@ -84,7 +84,7 @@ const Home = (props: {
}
return (
-
+
diff --git a/web/pages/index.tsx b/web/pages/index.tsx
index 8cc0f2d3..28619274 100644
--- a/web/pages/index.tsx
+++ b/web/pages/index.tsx
@@ -27,7 +27,7 @@ const Home = (props: { hotContracts: Contract[] }) => {
}
return (
-
+