Skip to content

Commit

Permalink
Add async/await for doctors order api call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel Virgulto committed Sep 6, 2023
1 parent 2970ea6 commit 86adb3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/views/DoctorOrders/OrderCard/OrderCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const OrderCard = (props: any) => {
getAllDoctorOrders();
}, []);

const getAllDoctorOrders = () => {
axios
const getAllDoctorOrders = async () => {
await axios
.get(url)
.then(function (response) {
const allDoctorOrders = response.data;
Expand Down

0 comments on commit 86adb3b

Please sign in to comment.