diff options
author | Joseph Ditton <jditton.atomic@gmail.com> | 2021-12-04 21:19:54 -0700 |
---|---|---|
committer | Joseph Ditton <jditton.atomic@gmail.com> | 2021-12-04 21:19:54 -0700 |
commit | 8ca1046bf3c049f3cc135ed383a23bd3490c4f01 (patch) | |
tree | 605d516a939205846e36fa58a209fbeae242a631 | |
parent | a37604fedd06e359d9bb5f70c77248d0ae460c67 (diff) | |
download | locchat-8ca1046bf3c049f3cc135ed383a23bd3490c4f01.tar.gz locchat-8ca1046bf3c049f3cc135ed383a23bd3490c4f01.zip |
corrects name attribute on client
-rw-r--r-- | client/components/admin/_admin.jsx | 4 | ||||
-rw-r--r-- | client/components/home/_home.jsx | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/client/components/admin/_admin.jsx b/client/components/admin/_admin.jsx index aff544c..1c37e44 100644 --- a/client/components/admin/_admin.jsx +++ b/client/components/admin/_admin.jsx @@ -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> ); diff --git a/client/components/home/_home.jsx b/client/components/home/_home.jsx index 7ec9335..4b1ab46 100644 --- a/client/components/home/_home.jsx +++ b/client/components/home/_home.jsx @@ -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> |