Skip to content

Commit

Permalink
fix sonar code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gilber committed Nov 3, 2023
1 parent 8d9e796 commit 175586f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default function Home() {
const [users, setUsers] = useState([]);

// eslint-disable-next-line
const { id } = useParams();

useEffect(() => {
loadUsers();
Expand Down Expand Up @@ -45,10 +44,10 @@ export default function Home() {
</tr>
</thead>
<tbody>
{users.map((user, index) => (
{users.map((user) => (
<tr>
<th scope="row" key={index}>
{index + 1}
<th scope="row" key={user.id}>
{user.id}
</th>
<td>{user.name}</td>
<td>{user.username}</td>
Expand Down

0 comments on commit 175586f

Please sign in to comment.