Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushmaanRajput committed Oct 2, 2023
1 parent 50de539 commit 045e2cd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/admin/Users.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ export const Users = () => {
];

useEffect(() => {
// axios
// .get(`${baseURL}/users`)
// .then((res) => {
// setUserData(res.data);
// // console.log(res.data);
// setIsLoading(false);
// })
// .catch((err) => {
// setIsLoading(false);
// });
axios
.get(`${baseURL}/users`)
.then((res) => {
setUserData(res.data);
// console.log(res.data);
setIsLoading(false);
})
.catch((err) => {
setIsLoading(false);
});
}, []);

const handleChange = (e) => {
Expand Down

0 comments on commit 045e2cd

Please sign in to comment.