Update profile.tsx
This commit is contained in:
@@ -138,7 +138,7 @@ export default function Profile() {
|
||||
<input
|
||||
disabled
|
||||
className="w-full rounded-lg bg-gray-100 p-3"
|
||||
value={user ? user.emailAddress : currUser.email}
|
||||
value={user ? user.emailAddress : currUser?.email}
|
||||
readOnly
|
||||
/>
|
||||
</span>
|
||||
@@ -183,7 +183,7 @@ export default function Profile() {
|
||||
></svg>
|
||||
) : (
|
||||
<>
|
||||
{user && user.nickName ? (
|
||||
{user && user.firstName ? (
|
||||
<>
|
||||
<button
|
||||
onClick={() => router.push("/teams")}
|
||||
|
||||
Reference in New Issue
Block a user