corrects name attribute on client

This commit is contained in:
Joseph Ditton 2021-12-04 21:19:54 -07:00
parent a37604fedd
commit 8ca1046bf3
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,9 @@ export const Admin = () => {
<div className="p-4">
<h2 className="text-3xl">Users</h2>
{users.map((user) => (
<div>{user.name}</div>
<div key={user.id}>
{user.firstName} {user.lastName}
</div>
))}
</div>
);

View File

@ -33,7 +33,7 @@ export const Home = () => {
return (
<div className="p-4">
<h1>Welcome {user.name}</h1>
<h1>Welcome {user.firstName}</h1>
<Button type="button" onClick={logout}>
Logout
</Button>